Fix thumbnail rendering and refreshing on full download.

This commit is contained in:
Cody Henthorne
2024-09-18 10:09:59 -04:00
committed by Greyson Parrelli
parent b74f04495e
commit a1bf4d62ab
11 changed files with 43 additions and 25 deletions

View File

@@ -218,6 +218,7 @@ public class PartAuthority {
int match = uriMatcher.match(uri);
switch (match) {
case PART_ROW:
case THUMBNAIL_ROW:
case PERSISTENT_ROW:
case BLOB_ROW:
return true;
@@ -226,7 +227,8 @@ public class PartAuthority {
}
public static boolean isAttachmentUri(@NonNull Uri uri) {
return uriMatcher.match(uri) == PART_ROW;
int match = uriMatcher.match(uri);
return match == PART_ROW || match == THUMBNAIL_ROW;
}
public static @NonNull AttachmentId requireAttachmentId(@NonNull Uri uri) {