mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-30 00:17:58 +01:00
fix some glitches with incasesensitive paths at directories
This commit is contained in:
parent
417c1169f8
commit
c242f74f9b
1 changed files with 6 additions and 4 deletions
|
@ -34,9 +34,11 @@ class GetDirectoriesAsynctask(val context: Context, val isPickVideo: Boolean, va
|
|||
val directories = groupDirectories(media)
|
||||
|
||||
val removePaths = ArrayList<String>()
|
||||
directories.keys.forEach {
|
||||
if (!File(it).exists() || !shouldFolderBeVisible(it, excludedPaths, includedPaths)) {
|
||||
removePaths.add(it)
|
||||
for ((path, curMedia) in directories) {
|
||||
// make sure the path has uppercase letters wherever appropriate
|
||||
val groupPath = File(curMedia.first().path).parent
|
||||
if (!File(groupPath).exists() || !shouldFolderBeVisible(groupPath, excludedPaths, includedPaths)) {
|
||||
removePaths.add(groupPath)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -66,7 +68,7 @@ class GetDirectoriesAsynctask(val context: Context, val isPickVideo: Boolean, va
|
|||
else -> parentDir.getFilenameFromPath()
|
||||
}
|
||||
|
||||
if (File(path).containsNoMedia()) {
|
||||
if (File(parentDir).containsNoMedia()) {
|
||||
dirName += " $hidden"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue