mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-01-21 23:35:25 +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)
|
||||
}
|
||||
|
||||
return foldersToScan
|
||||
return foldersToScan.distinctBy { it.toLowerCase() } as ArrayList<String>
|
||||
}
|
||||
|
||||
private fun addFolder(curFolders: ArrayList<String>, folder: String) {
|
||||
|
Loading…
Reference in New Issue
Block a user