|
@@ -293,29 +293,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
|
|
|
NCCommunicationCommon.shared.writeLog("bye bye")
|
|
|
}
|
|
|
|
|
|
- // MARK: - Privacy Protection
|
|
|
-
|
|
|
- private func showPrivacyProtectionWindow() {
|
|
|
-
|
|
|
- guard CCUtility.getPrivacyScreenEnabled() else { return }
|
|
|
-
|
|
|
- privacyProtectionWindow = UIWindow(frame: UIScreen.main.bounds)
|
|
|
-
|
|
|
- let storyboard = UIStoryboard(name: "LaunchScreen", bundle: nil)
|
|
|
- let initialViewController = storyboard.instantiateInitialViewController()
|
|
|
-
|
|
|
- self.privacyProtectionWindow?.rootViewController = initialViewController
|
|
|
-
|
|
|
- privacyProtectionWindow?.windowLevel = .alert + 1
|
|
|
- privacyProtectionWindow?.makeKeyAndVisible()
|
|
|
- }
|
|
|
-
|
|
|
- private func hidePrivacyProtectionWindow() {
|
|
|
-
|
|
|
- privacyProtectionWindow?.isHidden = true
|
|
|
- privacyProtectionWindow = nil
|
|
|
- }
|
|
|
-
|
|
|
// MARK: -
|
|
|
|
|
|
@objc private func initialize() {
|
|
@@ -807,6 +784,29 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
|
|
|
return code == CCUtility.getPasscode()
|
|
|
}
|
|
|
|
|
|
+ // MARK: - Privacy Protection
|
|
|
+
|
|
|
+ private func showPrivacyProtectionWindow() {
|
|
|
+
|
|
|
+ guard CCUtility.getPrivacyScreenEnabled() else { return }
|
|
|
+
|
|
|
+ privacyProtectionWindow = UIWindow(frame: UIScreen.main.bounds)
|
|
|
+
|
|
|
+ let storyboard = UIStoryboard(name: "LaunchScreen", bundle: nil)
|
|
|
+ let initialViewController = storyboard.instantiateInitialViewController()
|
|
|
+
|
|
|
+ self.privacyProtectionWindow?.rootViewController = initialViewController
|
|
|
+
|
|
|
+ privacyProtectionWindow?.windowLevel = .alert + 1
|
|
|
+ privacyProtectionWindow?.makeKeyAndVisible()
|
|
|
+ }
|
|
|
+
|
|
|
+ private func hidePrivacyProtectionWindow() {
|
|
|
+
|
|
|
+ privacyProtectionWindow?.isHidden = true
|
|
|
+ privacyProtectionWindow = nil
|
|
|
+ }
|
|
|
+
|
|
|
// MARK: - Open URL
|
|
|
|
|
|
func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
|