Fix last media preview V2 UI glitches.

This commit is contained in:
Nicholas
2022-10-14 15:31:16 -04:00
committed by Alex Hart
parent 3826ac553d
commit 7088b1a302
5 changed files with 57 additions and 20 deletions

View File

@@ -261,6 +261,19 @@ public class MediaDatabase extends Database {
public boolean isRelatedToFileSize() {
return this == Largest;
}
public static @NonNull Sorting deserialize(int code) {
switch (code) {
case 0:
return Newest;
case 1:
return Oldest;
case 2:
return Largest;
default:
throw new IllegalArgumentException("Unknown code: " + code);
}
}
}
public final static class StorageBreakdown {