catch exceptions thrown at updating db directories

This commit is contained in:
tibbi 2019-06-10 23:53:37 +02:00
parent 789152a98d
commit 402eb61f79

View file

@ -664,7 +664,10 @@ fun Context.updateDBMediaPath(oldPath: String, newPath: String) {
}
fun Context.updateDBDirectory(directory: Directory, directoryDao: DirectoryDao) {
directoryDao.updateDirectory(directory.path, directory.tmb, directory.mediaCnt, directory.modified, directory.taken, directory.size, directory.types)
try {
directoryDao.updateDirectory(directory.path, directory.tmb, directory.mediaCnt, directory.modified, directory.taken, directory.size, directory.types)
} catch (ignored: Exception) {
}
}
fun Context.getFavoritePaths(): ArrayList<String> {