소스 검색

#1338: Correctly use delayUntil property of SyncResult

Bartosz Przybylski 9 년 전
부모
커밋
3f61dc5a8a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);