mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-01-30 19:24:51 +01:00
do not show portrait folders on the main screen
This commit is contained in:
parent
230d793a40
commit
bc455addb4
@ -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…
x
Reference in New Issue
Block a user