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() {
|
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()
|
listener?.refreshItems()
|
||||||
finishActMode()
|
finishActMode()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue