mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2025-01-17 22:08:00 +01:00
compare directory paths incasesensitively on the first screen
This commit is contained in:
parent
7fa71c5302
commit
a493595207
1 changed files with 3 additions and 3 deletions
|
@ -43,8 +43,8 @@ class GetDirectoriesAsynctask(val context: Context, val isPickVideo: Boolean, va
|
||||||
cancel(true)
|
cancel(true)
|
||||||
|
|
||||||
val parentDir = File(path).parent ?: continue
|
val parentDir = File(path).parent ?: continue
|
||||||
if (directories.containsKey(parentDir)) {
|
if (directories.containsKey(parentDir.toLowerCase())) {
|
||||||
val directory = directories[parentDir]!!
|
val directory = directories[parentDir.toLowerCase()]!!
|
||||||
val newImageCnt = directory.mediaCnt + 1
|
val newImageCnt = directory.mediaCnt + 1
|
||||||
directory.mediaCnt = newImageCnt
|
directory.mediaCnt = newImageCnt
|
||||||
directory.addSize(size)
|
directory.addSize(size)
|
||||||
|
@ -71,7 +71,7 @@ class GetDirectoriesAsynctask(val context: Context, val isPickVideo: Boolean, va
|
||||||
}
|
}
|
||||||
|
|
||||||
val directory = Directory(parentDir, thumbnail, dirName, 1, dateModified, dateTaken, size)
|
val directory = Directory(parentDir, thumbnail, dirName, 1, dateModified, dateTaken, size)
|
||||||
directories.put(parentDir, directory)
|
directories.put(parentDir.toLowerCase(), directory)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return directories
|
return directories
|
||||||
|
|
Loading…
Reference in a new issue