do not show portrait folders on the main screen
This commit is contained in:
parent
230d793a40
commit
bc455addb4
1 changed files with 9 additions and 0 deletions
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in a new issue