diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/String.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/String.kt index 556f2c2f0..3941ba0db 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/String.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/String.kt @@ -23,6 +23,8 @@ fun String.shouldFolderBeVisible(excludedPaths: MutableSet, includedPath false } else if (!showHidden && file.containsNoMedia()) { false + } else if (excludedPaths.contains(this) && !includedPaths.contains(this)) { + false } else if (isThisOrParentIncluded(includedPaths)) { true } else if (isThisOrParentExcluded(excludedPaths)) {