avoid excluding the Recycle bin and Favorites folders

This commit is contained in:
tibbi 2018-07-19 00:04:02 +02:00
parent bb16fbce0d
commit d77b2e1890

View file

@ -297,7 +297,7 @@ class DirectoryAdapter(activity: BaseSimpleActivity, var dirs: ArrayList<Directo
}
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) {
ExcludeFolderDialog(activity, paths.toMutableList()) {
listener?.refreshItems()