mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-01 20:16:43 +01:00
avoid showing the same folder twice, with different casing
This commit is contained in:
parent
e2fa9646d9
commit
b4f44df183
@ -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…
x
Reference in New Issue
Block a user