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

Commit 63f289a8 authored by Ian Rogers's avatar Ian Rogers Committed by Android (Google) Code Review
Browse files

Merge "Fix bug where FileUtils.deleteOlderFiles wouldn't delete the oldest files."

parents 80468ad8 660e6def
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -380,7 +380,7 @@ public class FileUtils {
        Arrays.sort(files, new Comparator<File>() {
            @Override
            public int compare(File lhs, File rhs) {
                return (int) (rhs.lastModified() - lhs.lastModified());
                return Long.compare(rhs.lastModified(), lhs.lastModified());
            }
        });