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

Commit 2a42b47c authored by Vincent Bourgmayer's avatar Vincent Bourgmayer
Browse files

fix inverted if statement in FileDiffUtils

parent 9d5415cd
Loading
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -43,7 +43,6 @@ public class FileDiffUtils {
        if (isRemoteSizeSameAsLocalSize(remoteFile, localFile)) {
            return Action.updateDB;
        }

        return Action.Download;
    }

@@ -80,7 +79,7 @@ public class FileDiffUtils {
     * @return true if localLastModified store in Database == 0
     */
    private static boolean hasAlreadyBeenDownloaded(SyncedFileState fileState) {
        return fileState.getLocalLastModified() == 0L;
        return fileState.getLocalLastModified() > 0L;
    }

    /**