|
@@ -240,8 +240,8 @@
|
|
|
[CCCoreData setCameraUploadDateVideo:NULL];
|
|
|
|
|
|
// remove
|
|
|
- [app dropAutomaticUploadWithSelector:selectorUploadAutomatic];
|
|
|
- [app dropAutomaticUploadWithSelector:selectorUploadAutomaticAll];
|
|
|
+ [self dropAutomaticUploadWithSelector:selectorUploadAutomatic];
|
|
|
+ [self dropAutomaticUploadWithSelector:selectorUploadAutomaticAll];
|
|
|
}
|
|
|
|
|
|
// Initialize Camera Upload
|
|
@@ -288,7 +288,7 @@
|
|
|
|
|
|
} else {
|
|
|
|
|
|
- [app dropAutomaticUploadWithSelector:selectorUploadAutomaticAll];
|
|
|
+ [self dropAutomaticUploadWithSelector:selectorUploadAutomaticAll];
|
|
|
[CCCoreData setCameraUploadFullPhotosActiveAccount:NO activeAccount:app.activeAccount];
|
|
|
}
|
|
|
}
|
|
@@ -484,4 +484,14 @@
|
|
|
return sectionName;
|
|
|
}
|
|
|
|
|
|
+- (void)dropAutomaticUploadWithSelector:(NSString *)selector
|
|
|
+{
|
|
|
+ [CCCoreData flushTableAutomaticUploadAccount:app.activeAccount selector:selector];
|
|
|
+
|
|
|
+ // Update icon badge number
|
|
|
+ dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 1.0 * NSEC_PER_SEC), dispatch_get_main_queue(), ^{
|
|
|
+ [app updateApplicationIconBadgeNumber];
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
@end
|