Browse Source

Merge pull request #1359 from owncloud/bug_1338

Fix use of delayUntil property to grant automatic synchronization is not triggered before 3h
David A. Velasco 9 years ago
parent
commit
c6bebdc6b3
1 changed files with 1 additions and 1 deletions
  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);