do not show portrait folders on the main screen

This commit is contained in:
tibbi 2019-09-29 22:46:24 +02:00
parent 230d793a40
commit bc455addb4

View file

@ -16,6 +16,15 @@ fun String.shouldFolderBeVisible(excludedPaths: MutableSet<String>, includedPath
} }
val file = File(this) val file = File(this)
if (file.name.startsWith("img_", true)) {
val files = file.list()
if (files != null) {
if (files.any { it.contains("portrait", true) && it.contains("burst", true) }) {
return false
}
}
}
if (!showHidden && file.isHidden) { if (!showHidden && file.isHidden) {
return false return false
} else if (includedPaths.contains(this)) { } else if (includedPaths.contains(this)) {