mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
make sure we always show manually included folders, even if somehow hidden
This commit is contained in:
@ -82,7 +82,9 @@ class GetDirectoriesAsynctask(val context: Context, val isPickVideo: Boolean, va
|
|||||||
|
|
||||||
private fun shouldFolderBeVisible(path: String, excludedPaths: MutableSet<String>, includedPaths: MutableSet<String>): Boolean {
|
private fun shouldFolderBeVisible(path: String, excludedPaths: MutableSet<String>, includedPaths: MutableSet<String>): Boolean {
|
||||||
val file = File(path)
|
val file = File(path)
|
||||||
return if (isThisOrParentExcluded(path, excludedPaths, includedPaths)) {
|
return if (includedPaths.contains(path)) {
|
||||||
|
true
|
||||||
|
} else if (isThisOrParentExcluded(path, excludedPaths, includedPaths)) {
|
||||||
false
|
false
|
||||||
} else if (!config.shouldShowHidden && file.isDirectory && file.canonicalFile == file.absoluteFile) {
|
} else if (!config.shouldShowHidden && file.isDirectory && file.canonicalFile == file.absoluteFile) {
|
||||||
var containsNoMediaOrDot = file.containsNoMedia() || path.contains("/.")
|
var containsNoMediaOrDot = file.containsNoMedia() || path.contains("/.")
|
||||||
|
Reference in New Issue
Block a user