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

Commit 10da3b6e authored by Vincent Bourgmayer's avatar Vincent Bourgmayer
Browse files

clean codes

parent fd55d73f
Loading
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@ import foundation.e.drive.receivers.DebugCmdReceiver;
import foundation.e.drive.utils.AppConstants;
import foundation.e.drive.utils.CommonUtils;
import foundation.e.drive.utils.DavClientProvider;
import foundation.e.drive.utils.FileDiffUtils;
import foundation.e.drive.utils.FileDiffUtils.Action;
import foundation.e.drive.utils.ServiceExceptionHandler;
import foundation.e.drive.utils.SynchronizationServiceConnection;

@@ -386,13 +386,13 @@ public class ObserverService extends Service implements OnRemoteOperationListene
                    Log.d(TAG, "correspondant found for "+remoteFilePath );
                    correspondant_found = true;

                    final FileDiffUtils.Action action = getActionForFileDiff(remoteFile, syncedFileState);
                    if (action == FileDiffUtils.Action.Download) {
                    final Action action = getActionForFileDiff(remoteFile, syncedFileState);
                    if (action == Action.Download) {

                        Log.i(TAG, "Add download operation for file "+syncedFileState.getId());
                        this.syncRequests.put(syncedFileState.getId(), new DownloadRequest(remoteFile, syncedFileState));

                    } else if (action == FileDiffUtils.Action.updateDB) {
                    } else if (action == Action.updateDB) {

                        syncedFileState.setLastETAG(remoteFile.getEtag());
                        final int affectedRows = DbHelper.manageSyncedFileStateDB(syncedFileState, "UPDATE", this);