Loading app/src/main/java/foundation/e/drive/services/ObserverService.java +4 −4 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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); Loading Loading
app/src/main/java/foundation/e/drive/services/ObserverService.java +4 −4 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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); Loading