mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-23 13:08:00 +01:00
add an extra check to avoid showing duplicate folders
This commit is contained in:
parent
b4f44df183
commit
688b0e2624
1 changed files with 1 additions and 1 deletions
|
@ -276,7 +276,7 @@ fun Context.getCachedDirectories(getVideosOnly: Boolean = false, getImagesOnly:
|
||||||
}
|
}
|
||||||
}) as ArrayList<Directory>
|
}) as ArrayList<Directory>
|
||||||
|
|
||||||
callback(filteredDirectories)
|
callback(filteredDirectories.distinctBy { it.path.toLowerCase() } as ArrayList<Directory>)
|
||||||
|
|
||||||
removeInvalidDBDirectories(directories, directoryDao)
|
removeInvalidDBDirectories(directories, directoryDao)
|
||||||
}.start()
|
}.start()
|
||||||
|
|
Loading…
Reference in a new issue