marinofaggiana %!s(int64=4) %!d(string=hai) anos
pai
achega
dfe511501e
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      iOSClient/AppDelegate.swift

+ 2 - 1
iOSClient/AppDelegate.swift

@@ -174,7 +174,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
         NotificationCenter.default.postOnMainThread(name: NCGlobal.shared.notificationCenterInitializeMain)
         NotificationCenter.default.postOnMainThread(name: NCGlobal.shared.notificationCenterInitializeMain)
 
 
         // Passcode
         // Passcode
-        DispatchQueue.global().async {
+        DispatchQueue.main.async {
             self.passcodeWithAutomaticallyPromptForBiometricValidation(true)
             self.passcodeWithAutomaticallyPromptForBiometricValidation(true)
         }
         }
                 
                 
@@ -481,6 +481,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
     }
     }
 
 
     func showLoginViewController(_ viewController:UIViewController?, contextViewController: UIViewController?) {
     func showLoginViewController(_ viewController:UIViewController?, contextViewController: UIViewController?) {
+        
         if contextViewController == nil {
         if contextViewController == nil {
             if let viewController = viewController {
             if let viewController = viewController {
                 let navigationController = UINavigationController.init(rootViewController: viewController)
                 let navigationController = UINavigationController.init(rootViewController: viewController)