catch exceptions thrown at deleting invalid cached files too
This commit is contained in:
parent
54312adb75
commit
bf4d53f14d
1 changed files with 5 additions and 2 deletions
|
@ -573,9 +573,12 @@ fun Context.getCachedMedia(path: String, getVideosOnly: Boolean = false, getImag
|
|||
}
|
||||
}
|
||||
|
||||
try {
|
||||
if (mediaToDelete.isNotEmpty()) {
|
||||
mediumDao.deleteMedia(*mediaToDelete.toTypedArray())
|
||||
}
|
||||
} catch (ignored: Exception) {
|
||||
}
|
||||
}.start()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue