mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 06:10: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),
|
||||
fileName
|
||||
)
|
||||
if (!file.exists()) return null
|
||||
return getImage(context, Uri.fromFile(file))
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user