avoid excluding the Recycle bin and Favorites folders
This commit is contained in:
parent
bb16fbce0d
commit
d77b2e1890
1 changed files with 1 additions and 1 deletions
|
@ -297,7 +297,7 @@ class DirectoryAdapter(activity: BaseSimpleActivity, var dirs: ArrayList<Directo
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun tryExcludeFolder() {
|
private fun tryExcludeFolder() {
|
||||||
val paths = getSelectedPaths().filter { it != PATH }.toSet()
|
val paths = getSelectedPaths().filter { it != PATH && it != RECYCLE_BIN && it != FAVORITES }.toSet()
|
||||||
if (paths.size == 1) {
|
if (paths.size == 1) {
|
||||||
ExcludeFolderDialog(activity, paths.toMutableList()) {
|
ExcludeFolderDialog(activity, paths.toMutableList()) {
|
||||||
listener?.refreshItems()
|
listener?.refreshItems()
|
||||||
|
|
Loading…
Reference in a new issue