fixing a glitch with some folders being invisible

This commit is contained in:
tibbi 2020-09-27 09:56:02 +02:00
parent 7fe0f2fe0d
commit 73b1d2147e

View file

@ -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()