mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
fix #728, fix excluding multiple folders at once
This commit is contained in:
parent
b1c6006e18
commit
7888de7b52
1 changed files with 8 additions and 1 deletions
|
@ -195,7 +195,14 @@ class DirectoryAdapter(activity: BaseSimpleActivity, var dirs: MutableList<Direc
|
|||
}
|
||||
|
||||
private fun tryExcludeFolder() {
|
||||
ExcludeFolderDialog(activity, getSelectedPaths().toList()) {
|
||||
val paths = getSelectedPaths()
|
||||
if (paths.size == 1) {
|
||||
ExcludeFolderDialog(activity, paths.toList()) {
|
||||
listener?.refreshItems()
|
||||
finishActMode()
|
||||
}
|
||||
} else {
|
||||
activity.config.addExcludedFolders(paths)
|
||||
listener?.refreshItems()
|
||||
finishActMode()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue