mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-28 07:50:31 +05:30
Merge pull request #1806 from Bnyro/master
fix crash when thumbnail missing
This commit is contained in:
commit
8d2a9038ef
@ -72,6 +72,7 @@ object ImageHelper {
|
|||||||
DownloadHelper.getDownloadDir(context, DownloadHelper.THUMBNAIL_DIR),
|
DownloadHelper.getDownloadDir(context, DownloadHelper.THUMBNAIL_DIR),
|
||||||
fileName
|
fileName
|
||||||
)
|
)
|
||||||
|
if (!file.exists()) return null
|
||||||
return getImage(context, Uri.fromFile(file))
|
return getImage(context, Uri.fromFile(file))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user