mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
avoid showing the same folder twice, with different casing
This commit is contained in:
parent
e2fa9646d9
commit
b4f44df183
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ class MediaFetcher(val context: Context) {
|
||||||
foldersToScan.add(curPath)
|
foldersToScan.add(curPath)
|
||||||
}
|
}
|
||||||
|
|
||||||
return foldersToScan
|
return foldersToScan.distinctBy { it.toLowerCase() } as ArrayList<String>
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun addFolder(curFolders: ArrayList<String>, folder: String) {
|
private fun addFolder(curFolders: ArrayList<String>, folder: String) {
|
||||||
|
|
Loading…
Reference in a new issue