fix #728, fix excluding multiple folders at once

This commit is contained in:
tibbi 2018-04-08 22:06:20 +02:00
parent b1c6006e18
commit 7888de7b52
1 changed files with 8 additions and 1 deletions

View File

@ -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()
}