fix #1230, show directly included folders even if they contain .nomedia

This commit is contained in:
tibbi 2019-01-23 12:42:48 +01:00
parent 34e6996dc4
commit b6ce759370
1 changed files with 5 additions and 1 deletions

View File

@ -21,9 +21,13 @@ fun String.shouldFolderBeVisible(excludedPaths: MutableSet<String>, includedPath
val file = File(this) val file = File(this)
return if (isEmpty()) { return if (isEmpty()) {
false false
} else if (!showHidden && file.isHidden) {
false
} else if (includedPaths.contains(this)) {
true
} else if (!showHidden && file.containsNoMedia()) { } else if (!showHidden && file.containsNoMedia()) {
false false
} else if (excludedPaths.contains(this) && !includedPaths.contains(this)) { } else if (excludedPaths.contains(this)) {
false false
} else if (isThisOrParentIncluded(includedPaths)) { } else if (isThisOrParentIncluded(includedPaths)) {
true true