mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-22 20:48:00 +01:00
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)
|
||||
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) {
|
||||
return false
|
||||
} else if (includedPaths.contains(this)) {
|
||||
|
|
Loading…
Reference in a new issue