mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-04-24 07:07:22 +02: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() {
|
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…
x
Reference in New Issue
Block a user