summaryrefslogtreecommitdiff
path: root/ios/experimental/LibreOfficeLight/LibreOfficeLight/AppDelegate.swift
diff options
context:
space:
mode:
Diffstat (limited to 'ios/experimental/LibreOfficeLight/LibreOfficeLight/AppDelegate.swift')
-rw-r--r--ios/experimental/LibreOfficeLight/LibreOfficeLight/AppDelegate.swift10
1 files changed, 8 insertions, 2 deletions
diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLight/AppDelegate.swift b/ios/experimental/LibreOfficeLight/LibreOfficeLight/AppDelegate.swift
index a1e97161d873..bd9c7cbafe59 100644
--- a/ios/experimental/LibreOfficeLight/LibreOfficeLight/AppDelegate.swift
+++ b/ios/experimental/LibreOfficeLight/LibreOfficeLight/AppDelegate.swift
@@ -19,6 +19,11 @@ class AppDelegate: UIResponder, UIApplicationDelegate
// MARK: - AppDelegate functions
+ func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool
+ {
+ // called when started from another Application.
+ return true
+ }
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool
@@ -31,6 +36,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate
defaults.set(applicationVersion, forKey: "application_version")
defaults.synchronize()
+ // start LibreOfficeKit
+ BridgeLOkit_Init(Bundle.main.bundlePath)
+
// Override point for customization after application launch.
return true
}
@@ -72,8 +80,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate
func applicationDidBecomeActive(_ application: UIApplication)
{
- // start LibreOfficeKit
- BridgeLOkit_Init(Bundle.main.bundlePath)
}