Marino Faggiana 8 年之前
父节点
当前提交
8e738f1f69
共有 1 个文件被更改,包括 12 次插入10 次删除
  1. 12 10
      iOSClient/PhotosCameraUpload/CCPhotosCameraUpload.m

+ 12 - 10
iOSClient/PhotosCameraUpload/CCPhotosCameraUpload.m

@@ -1126,7 +1126,15 @@
     // Create the folder for Photos & if request the subfolders
     if(![app createFolderSubFolderAutomaticUploadFolderPhotos:folderPhotos useSubFolder:useSubFolder assets:newItemsPHAssetToUpload selector:selectorUploadAutomaticAll]) {
             
-        [self endLoadingAssets];
+        // end loading
+        [_hud hideHud];
+        
+        // START
+        app.automaticCheckAssetInProgress = NO;
+        
+        // Enable idle timer
+        [[UIApplication sharedApplication] setIdleTimerDisabled:NO];
+        
         return;
     }
     
@@ -1180,14 +1188,6 @@
     }
     
     // end loading
-    [self endLoadingAssets];
-    
-    // Update icon badge number
-    [app updateApplicationIconBadgeNumber];
-}
-
--(void)endLoadingAssets
-{
     [_hud hideHud];
     
     // START
@@ -1296,8 +1296,10 @@
         // Update Camera Upload data
         if ([metadataNet.selector isEqualToString:selectorUploadAutomatic])
             [CCCoreData setCameraUploadDateAssetType:assetMediaType assetDate:assetDate activeAccount:appDelegate.activeAccount];
+        
+        // Update icon badge number
+        [app updateApplicationIconBadgeNumber];
     });
-
 }
 
 @end