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

+ 8 - 9
iOSClient/AppDelegate.m

@@ -267,17 +267,16 @@
     [[NSNotificationCenter defaultCenter] postNotificationOnMainThreadName:k_notificationCenter_applicationDidEnterBackground object:nil];
     [self passcodeWithAutomaticallyPromptForBiometricValidation:false];
     
-    if([[UIDevice currentDevice] respondsToSelector:@selector(isMultitaskingSupported)]) {
+    /*
+    __block UIBackgroundTaskIdentifier background_task;
         
-        __block UIBackgroundTaskIdentifier background_task;
-        
-        background_task = [application beginBackgroundTaskWithExpirationHandler:^ {
+    background_task = [application beginBackgroundTaskWithExpirationHandler:^ {
             
-            //Clean up code. Tell the system that we are done.
-            [application endBackgroundTask: background_task];
-            background_task = UIBackgroundTaskInvalid;
-        }];
-    }
+        //Clean up code. Tell the system that we are done.
+        [application endBackgroundTask: background_task];
+        background_task = UIBackgroundTaskInvalid;
+    }];
+    */
 }
 
 //