mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-12 10:00:43 +01:00
make folders distinct before checking if they should be visible
This commit is contained in:
parent
26e96418b6
commit
aa4af8a292
@ -192,8 +192,8 @@ class MediaFetcher(val context: Context) {
|
||||
|
||||
val showHidden = config.shouldShowHidden
|
||||
val excludedFolders = config.excludedFolders
|
||||
foldersToScan = foldersToScan.filter { it.shouldFolderBeVisible(excludedFolders, includedFolders, showHidden, context) }.toHashSet()
|
||||
return foldersToScan.distinctBy { it.getDistinctPath() }.toMutableSet() as LinkedHashSet<String>
|
||||
return foldersToScan.distinctBy { it.getDistinctPath() }
|
||||
.filter { it.shouldFolderBeVisible(excludedFolders, includedFolders, showHidden, context) }.toMutableSet() as LinkedHashSet<String>
|
||||
}
|
||||
|
||||
private fun addFolder(curFolders: HashSet<String>, folder: String) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user