fixed a glitch with files not being sorted properly in some cases

This commit is contained in:
tibbi 2021-10-24 19:19:38 +02:00
parent 352dbe40bf
commit e1c5631c58

View file

@ -43,7 +43,7 @@ class MediaFetcher(val context: Context) {
} else { } else {
val newMedia = getMediaInFolder( val newMedia = getMediaInFolder(
curPath, isPickImage, isPickVideo, filterMedia, getProperDateTaken, getProperLastModified, getProperFileSize, curPath, isPickImage, isPickVideo, filterMedia, getProperDateTaken, getProperLastModified, getProperFileSize,
favoritePaths, getVideoDurations, lastModifieds, dateTakens favoritePaths, getVideoDurations, lastModifieds.clone() as HashMap<String, Long>, dateTakens.clone() as HashMap<String, Long>
) )
curMedia.addAll(newMedia) curMedia.addAll(newMedia)
} }