Jelajahi Sumber

Change function loadAutomaticUpload

Marino Faggiana 8 tahun lalu
induk
melakukan
1c1327ea6b

+ 1 - 1
Nextcloud.xcodeproj/project.pbxproj

@@ -3309,8 +3309,8 @@
 				F70F02A81C889183008DAB36 /* Libraries external */,
 				F75EDFA41E8C106900E6F369 /* Analytics */,
 				F7A582D71A24DAB500E903D7 /* AppDelegate.h */,
-				F7A582D61A24DAB500E903D7 /* AppDelegate.m */,
 				F7C1CDCE1E6DFAD1005D92BE /* CCStandardImages.h */,
+				F7A582D61A24DAB500E903D7 /* AppDelegate.m */,
 				F7C8C1901B482CEA0048180E /* CCGlobal.h */,
 				F7C8C1911B482CEA0048180E /* CCGlobal.m */,
 				F78088E51DD3A1DB005C5A7C /* cryptocloud.xcdatamodeld */,

+ 2 - 2
iOSClient/AppDelegate.h

@@ -43,8 +43,8 @@
 
 @interface AppDelegate : UIResponder <UIApplicationDelegate, BKPasscodeLockScreenManagerDelegate, BKPasscodeViewControllerDelegate, LMMediaPlayerViewDelegate, TWMessageBarStyleSheet, CCNetworkingDelegate>
 
-// Timer 5 sec.
-@property (nonatomic, strong) NSTimer *timerVerifyProcess;
+// Timer Process
+@property (nonatomic, strong) NSTimer *timerProcess;
 
 // For LMMediaPlayerView
 @property (strong, nonatomic) UIWindow *window;

+ 3 - 3
iOSClient/AppDelegate.m

@@ -269,7 +269,7 @@
     }
     
     // Start timer Verify Process
-    self.timerVerifyProcess = [NSTimer scheduledTimerWithTimeInterval:5.0 target:self selector:@selector(verifyProcess) userInfo:nil repeats:YES];
+    self.timerProcess = [NSTimer scheduledTimerWithTimeInterval:k_timerProcess target:self selector:@selector(process) userInfo:nil repeats:YES];
     
     // Registration Push Notification
     UIUserNotificationType types = UIUserNotificationTypeSound | UIUserNotificationTypeBadge | UIUserNotificationTypeAlert;
@@ -373,10 +373,10 @@
 }
 
 #pragma --------------------------------------------------------------------------------------------
-#pragma mark ===== Verify Process 5 seconds =====
+#pragma mark ===== Process k_timerProcess seconds =====
 #pragma --------------------------------------------------------------------------------------------
 
-- (void)verifyProcess
+- (void)process
 {
 // BACKGROND & FOREGROUND
 

+ 2 - 1
iOSClient/CCGlobal.h

@@ -137,7 +137,8 @@ extern NSString *const urlBaseUploadDB;
 #define k_taskStatusResume                              -2
 #define k_taskStatusSuspend                             -3
 
-#define k_timerVerifySession                            15.0
+#define k_timerVerifySession                            15
+#define k_timerProcess                                  7
 
 #define k_maxConcurrentOperation                        10
 #define k_maxConcurrentOperationDownloadUpload          10