Fix story text previews.

This commit is contained in:
Michelle Tang
2025-04-30 15:25:14 -04:00
committed by GitHub
parent daf87915d6
commit 7f5bfc210b
3 changed files with 13 additions and 1 deletions

View File

@@ -96,6 +96,10 @@ public class BlobProvider {
return new BlobBuilder(data, fileSize);
}
public static boolean isSingleUseMemoryBlob(Uri uri) throws IOException {
return StorageType.decode(uri.getPathSegments().get(STORAGE_TYPE_PATH_SEGMENT)) == StorageType.SINGLE_USE_MEMORY;
}
public synchronized boolean hasStream(@NonNull Context context, @NonNull Uri uri) {
waitUntilInitialized();
try {