mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-01-29 18:59:18 +01:00
fix #1230, show directly included folders even if they contain .nomedia
This commit is contained in:
parent
34e6996dc4
commit
b6ce759370
@ -21,9 +21,13 @@ fun String.shouldFolderBeVisible(excludedPaths: MutableSet<String>, includedPath
|
||||
val file = File(this)
|
||||
return if (isEmpty()) {
|
||||
false
|
||||
} else if (!showHidden && file.isHidden) {
|
||||
false
|
||||
} else if (includedPaths.contains(this)) {
|
||||
true
|
||||
} else if (!showHidden && file.containsNoMedia()) {
|
||||
false
|
||||
} else if (excludedPaths.contains(this) && !includedPaths.contains(this)) {
|
||||
} else if (excludedPaths.contains(this)) {
|
||||
false
|
||||
} else if (isThisOrParentIncluded(includedPaths)) {
|
||||
true
|
||||
|
Loading…
x
Reference in New Issue
Block a user