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

View file

@ -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