Merge pull request #1806 from Bnyro/master

fix crash when thumbnail missing
This commit is contained in:
Bnyro 2022-11-11 18:43:36 +01:00 committed by GitHub
commit 8d2a9038ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,6 +72,7 @@ object ImageHelper {
DownloadHelper.getDownloadDir(context, DownloadHelper.THUMBNAIL_DIR),
fileName
)
if (!file.exists()) return null
return getImage(context, Uri.fromFile(file))
}