mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 09:39:25 +03:00
#1338: Correctly use delayUntil property of SyncResult
This commit is contained in:
parent
669ebe083c
commit
3f61dc5a8a
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue