Browse Source

#1338: Correctly use delayUntil property of SyncResult

Bartosz Przybylski 9 năm trước cách đây
mục cha
commit
3f61dc5a8a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/com/owncloud/android/syncadapter/FileSyncAdapter.java

+ 1 - 1
src/com/owncloud/android/syncadapter/FileSyncAdapter.java

@@ -154,7 +154,7 @@ public class FileSyncAdapter extends AbstractOwnCloudSyncAdapter {
         mForgottenLocalFiles = new HashMap<String, String>();
         mSyncResult = syncResult;
         mSyncResult.fullSyncRequested = false;
-        mSyncResult.delayUntil = 60*60*24; // avoid too many automatic synchronizations
+        mSyncResult.delayUntil = (System.currentTimeMillis()/1000) + 3*60*60; // avoid too many automatic synchronizations
 
         this.setAccount(account);
         this.setContentProviderClient(providerClient);