[BUG] thumbnail of last image not working with Android versions >= Q
Created by: Wv5twkFEKh54vo4tta9yu7dHa3
-
I checked the release notes for known issues -
I checked the existing issues -
I checked that the issue is not related to my instance configuration, and that my instance has the latest version of pixelfed
With Android versions >= Q, the thumbnail of the image doesn't show. We get the right Uri for it, (/storage/...) but when Glide tries to access it, it gives an error: this is related to the "Scoped storage" introduced with android Q, see https://github.com/bumptech/glide/issues/3896
We shouldn't use the legacy permission workaround, but we should look into using the MediaStore API properly to get a content:// Uri there (I thought this was already done, but apparently not... see https://github.com/H-PixelDroid/PixelDroid/blob/6aba98de3d6ceb7d4f4bfdaceaa2852965391d81/app/src/main/java/com/h/pixeldroid/fragments/CameraFragment.kt#L253-L272