fix a glitch with wrong sorting by date taken

This commit is contained in:
tibbi 2022-05-31 09:17:08 +02:00
parent 4ab9fcb29d
commit 2838887c83

View file

@ -38,7 +38,7 @@ class GetMediaAsynctask(val context: Context, val mPath: String, val isPickImage
val media = ArrayList<Medium>()
foldersToScan.forEach {
val newMedia = mediaFetcher.getFilesFrom(it, isPickImage, isPickVideo, getProperDateTaken, getProperLastModified, getProperFileSize,
favoritePaths, getVideoDurations, lastModifieds, dateTakens, null)
favoritePaths, getVideoDurations, lastModifieds, dateTakens.clone() as HashMap<String, Long>, null)
media.addAll(newMedia)
}