mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-01-20 23:36:45 +01:00
avoid excluding the Recycle bin and Favorites folders
This commit is contained in:
parent
bb16fbce0d
commit
d77b2e1890
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user