mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-05-01 02:18:50 +02:00
making the visibility toggling function a bit clearer to read
This commit is contained in:
parent
8ca190d8ef
commit
e765332e3b
@ -235,9 +235,7 @@ class DirectoryAdapter(activity: BaseSimpleActivity, var dirs: ArrayList<Directo
|
|||||||
hideFolders(selectedPaths)
|
hideFolders(selectedPaths)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return
|
} else {
|
||||||
}
|
|
||||||
|
|
||||||
selectedPaths.filter { it != FAVORITES && it != RECYCLE_BIN && (selectedPaths.size == 1 || !activity.config.isFolderProtected(it)) }.forEach {
|
selectedPaths.filter { it != FAVORITES && it != RECYCLE_BIN && (selectedPaths.size == 1 || !activity.config.isFolderProtected(it)) }.forEach {
|
||||||
val path = it
|
val path = it
|
||||||
activity.handleLockedFolderOpening(path) { success ->
|
activity.handleLockedFolderOpening(path) { success ->
|
||||||
@ -258,6 +256,7 @@ class DirectoryAdapter(activity: BaseSimpleActivity, var dirs: ArrayList<Directo
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private fun hideFolders(paths: ArrayList<String>) {
|
private fun hideFolders(paths: ArrayList<String>) {
|
||||||
for (path in paths) {
|
for (path in paths) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user