Browse Source

clear code

Marino Faggiana 7 years ago
parent
commit
66b4cb298a
1 changed files with 1 additions and 10 deletions
  1. 1 10
      iOSClient/AutoUpload/NCAutoUpload.m

+ 1 - 10
iOSClient/AutoUpload/NCAutoUpload.m

@@ -384,9 +384,6 @@
     if ([newItemsToUpload count] == 0)
     if ([newItemsToUpload count] == 0)
         return;
         return;
     
     
-    // Disable idle timer
-    [[UIApplication sharedApplication] setIdleTimerDisabled: YES];
-    
     if (assetsFull) {
     if (assetsFull) {
         
         
         if (!_hud)
         if (!_hud)
@@ -439,9 +436,6 @@
         // end loading
         // end loading
         [_hud hideHud];
         [_hud hideHud];
         
         
-        // Enable idle timer
-        [[UIApplication sharedApplication] setIdleTimerDisabled:NO];
-        
         return;
         return;
     }
     }
     
     
@@ -508,10 +502,7 @@
     }
     }
     
     
     // end loading
     // end loading
-    [_hud hideHud];
-    
-    // Enable idle timer
-    [[UIApplication sharedApplication] setIdleTimerDisabled:NO];
+    [_hud hideHud];    
 }
 }
 
 
 - (void)writeAssetToSandbox:(CCMetadataNet *)metadataNet
 - (void)writeAssetToSandbox:(CCMetadataNet *)metadataNet