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 {
when {
distinctPathsMap.containsKey(it) -> distinctPathsMap[it]
distinctPathsMap.contains(it.getParentPath()) -> distinctPathsMap[it.getParentPath()]
else -> {
val distinct = it.getDistinctPath()
distinctPathsMap[it.getParentPath()] = distinct.getParentPath()