mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-23 13:08:00 +01:00
catch exceptions thrown at updating db directories
This commit is contained in:
parent
789152a98d
commit
402eb61f79
1 changed files with 4 additions and 1 deletions
|
@ -664,7 +664,10 @@ fun Context.updateDBMediaPath(oldPath: String, newPath: String) {
|
||||||
}
|
}
|
||||||
|
|
||||||
fun Context.updateDBDirectory(directory: Directory, directoryDao: DirectoryDao) {
|
fun Context.updateDBDirectory(directory: Directory, directoryDao: DirectoryDao) {
|
||||||
|
try {
|
||||||
directoryDao.updateDirectory(directory.path, directory.tmb, directory.mediaCnt, directory.modified, directory.taken, directory.size, directory.types)
|
directoryDao.updateDirectory(directory.path, directory.tmb, directory.mediaCnt, directory.modified, directory.taken, directory.size, directory.types)
|
||||||
|
} catch (ignored: Exception) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun Context.getFavoritePaths(): ArrayList<String> {
|
fun Context.getFavoritePaths(): ArrayList<String> {
|
||||||
|
|
Loading…
Reference in a new issue