Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

Resolve "reduce eDrive polling"

parent b345f093
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@
/.idea/workspace.xml
/.idea/libraries
/.idea/codeStyles/
.idea
.DS_Store
/build
/captures
+7 −0
Original line number Diff line number Diff line
@@ -155,6 +155,13 @@ public class ListFileRemoteOperation extends RemoteOperation {
                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
        finalResult = new RemoteOperationResult(RemoteOperationResult.ResultCode.OK);

+1 −1
Original line number Diff line number Diff line
@@ -62,7 +62,7 @@ import static foundation.e.drive.utils.AppConstants.INITIALIZATION_HAS_BEEN_DONE
 */
public class ObserverService extends Service implements OnRemoteOperationListener{
    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 boolean isWorking = false;