mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
catch some more exceptions at loading folders
This commit is contained in:
@ -899,16 +899,16 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (ignored: Exception) {
|
|
||||||
}
|
|
||||||
|
|
||||||
if (dirPathsToRemove.isNotEmpty()) {
|
if (dirPathsToRemove.isNotEmpty()) {
|
||||||
val dirsToRemove = dirs.filter { dirPathsToRemove.contains(it.path) }
|
val dirsToRemove = dirs.filter { dirPathsToRemove.contains(it.path) }
|
||||||
dirsToRemove.forEach {
|
dirsToRemove.forEach {
|
||||||
mDirectoryDao.deleteDirPath(it.path)
|
mDirectoryDao.deleteDirPath(it.path)
|
||||||
|
}
|
||||||
|
dirs.removeAll(dirsToRemove)
|
||||||
|
setupAdapter(dirs)
|
||||||
}
|
}
|
||||||
dirs.removeAll(dirsToRemove)
|
} catch (ignored: Exception) {
|
||||||
setupAdapter(dirs)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
val foldersToScan = mediaFetcher.getFoldersToScan()
|
val foldersToScan = mediaFetcher.getFoldersToScan()
|
||||||
|
Reference in New Issue
Block a user