You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was recently trying to use thumbnail API to load local media thumbnails which weren't actually loading a thumbnail but the full image. By exploring glide codebase I found that Glide is using ThumbFetcher to load media store thumbnails which is basically querying the thumbnails table as in here. MediaStore.Images.Thumbnails is already deprecated and thumbnail generation is currently done using a different flow which doesn't insert anything in the thumbnails table anymore, which would lead to having the thumbFetcher return null.
I believe the current implementation of ThumbFetcher should shift towards calling ContentResolver.loadThumbnail or ContentResolver.openTypedAssetFile to make sure that glide is handling the media store thumbnail requests correctly.
Please let me know your thoughts!
The text was updated successfully, but these errors were encountered:
I was recently trying to use thumbnail API to load local media thumbnails which weren't actually loading a thumbnail but the full image. By exploring glide codebase I found that Glide is using ThumbFetcher to load media store thumbnails which is basically querying the thumbnails table as in here. MediaStore.Images.Thumbnails is already deprecated and thumbnail generation is currently done using a different flow which doesn't insert anything in the thumbnails table anymore, which would lead to having the thumbFetcher return null.
I believe the current implementation of ThumbFetcher should shift towards calling ContentResolver.loadThumbnail or ContentResolver.openTypedAssetFile to make sure that glide is handling the media store thumbnail requests correctly.
Please let me know your thoughts!
The text was updated successfully, but these errors were encountered: