Commit dd006b36 authored by Vincent Bourgmayer's avatar Vincent Bourgmayer 🎼 Committed by Arnau Vàzquez
Browse files

Resolve "reduce eDrive polling"

parent 082f2e09
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
/.idea/workspace.xml /.idea/workspace.xml
/.idea/libraries /.idea/libraries
/.idea/codeStyles/ /.idea/codeStyles/
.idea
.DS_Store .DS_Store
/build /build
/captures /captures
......
...@@ -155,6 +155,11 @@ public class ListFileRemoteOperation extends RemoteOperation { ...@@ -155,6 +155,11 @@ public class ListFileRemoteOperation extends RemoteOperation {
Log.w(TAG, "LightReadFolderRemoteOperation failed : http " + result.getHttpCode() + ", " + result.getLogMessage()+" => Ignored"); Log.w(TAG, "LightReadFolderRemoteOperation failed : http " + result.getHttpCode() + ", " + result.getLogMessage()+" => Ignored");
} }
try {
Thread.sleep(150);
}catch(InterruptedException e){
Log.w(TAG, "listFileRemoteOperation's sleep had been interrupted");
}
} //End of loop } //End of loop
finalResult = new RemoteOperationResult(RemoteOperationResult.ResultCode.OK); finalResult = new RemoteOperationResult(RemoteOperationResult.ResultCode.OK);
......
...@@ -60,7 +60,7 @@ import foundation.e.drive.utils.ServiceExceptionHandler; ...@@ -60,7 +60,7 @@ import foundation.e.drive.utils.ServiceExceptionHandler;
*/ */
public class ObserverService extends Service implements OnRemoteOperationListener { public class ObserverService extends Service implements OnRemoteOperationListener {
private final static String TAG = ObserverService.class.getSimpleName(); private final static String TAG = ObserverService.class.getSimpleName();
private final static int INTERSYNC_MINIMUM_DELAY = 300000; // min delay between two sync in ms. private final static int INTERSYNC_MINIMUM_DELAY = 900000; // min delay between two sync in ms.
private List<SyncedFolder> mSyncedFolders; //List of synced folder private List<SyncedFolder> mSyncedFolders; //List of synced folder
private boolean isWorking = false; private boolean isWorking = false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment