mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-30 00:17:58 +01:00
catch exceptions thrown at deleting DB paths
This commit is contained in:
parent
fc04a9c697
commit
a4b42b5522
1 changed files with 4 additions and 1 deletions
|
@ -617,7 +617,10 @@ fun Context.getUpdatedDeletedMedia(mediumDao: MediumDao): ArrayList<Medium> {
|
|||
}
|
||||
|
||||
fun Context.deleteDBPath(mediumDao: MediumDao, path: String) {
|
||||
try {
|
||||
mediumDao.deleteMediumPath(path.replaceFirst(recycleBinPath, RECYCLE_BIN))
|
||||
} catch (ignored: Exception) {
|
||||
}
|
||||
}
|
||||
|
||||
fun Context.updateWidgets() {
|
||||
|
|
Loading…
Reference in a new issue