catch exceptions thrown at deleting DB paths

This commit is contained in:
tibbi 2019-02-22 12:41:28 +01:00
parent fc04a9c697
commit a4b42b5522

View file

@ -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() {