mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-16 20:10:37 +01:00
fixing a glitch with some folders being invisible
This commit is contained in:
parent
7fe0f2fe0d
commit
73b1d2147e
@ -74,7 +74,6 @@ class MediaFetcher(val context: Context) {
|
||||
val distinctPaths = folders.distinctBy {
|
||||
when {
|
||||
distinctPathsMap.containsKey(it) -> distinctPathsMap[it]
|
||||
distinctPathsMap.contains(it.getParentPath()) -> distinctPathsMap[it.getParentPath()]
|
||||
else -> {
|
||||
val distinct = it.getDistinctPath()
|
||||
distinctPathsMap[it.getParentPath()] = distinct.getParentPath()
|
||||
|
Loading…
x
Reference in New Issue
Block a user