catch some more exceptions at loading folders
This commit is contained in:
parent
8290f43282
commit
9d2026e639
1 changed files with 8 additions and 8 deletions
|
@ -899,8 +899,6 @@ 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) }
|
||||||
|
@ -910,6 +908,8 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
|
||||||
dirs.removeAll(dirsToRemove)
|
dirs.removeAll(dirsToRemove)
|
||||||
setupAdapter(dirs)
|
setupAdapter(dirs)
|
||||||
}
|
}
|
||||||
|
} catch (ignored: Exception) {
|
||||||
|
}
|
||||||
|
|
||||||
val foldersToScan = mediaFetcher.getFoldersToScan()
|
val foldersToScan = mediaFetcher.getFoldersToScan()
|
||||||
foldersToScan.add(FAVORITES)
|
foldersToScan.add(FAVORITES)
|
||||||
|
|
Loading…
Reference in a new issue