mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
fixing a glitch with some folders being invisible
This commit is contained in:
@@ -74,7 +74,6 @@ class MediaFetcher(val context: Context) {
|
|||||||
val distinctPaths = folders.distinctBy {
|
val distinctPaths = folders.distinctBy {
|
||||||
when {
|
when {
|
||||||
distinctPathsMap.containsKey(it) -> distinctPathsMap[it]
|
distinctPathsMap.containsKey(it) -> distinctPathsMap[it]
|
||||||
distinctPathsMap.contains(it.getParentPath()) -> distinctPathsMap[it.getParentPath()]
|
|
||||||
else -> {
|
else -> {
|
||||||
val distinct = it.getDistinctPath()
|
val distinct = it.getDistinctPath()
|
||||||
distinctPathsMap[it.getParentPath()] = distinct.getParentPath()
|
distinctPathsMap[it.getParentPath()] = distinct.getParentPath()
|
||||||
|
Reference in New Issue
Block a user