From 2838887c830e40df912a4a716cb7c739b19fc160 Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 31 May 2022 09:17:08 +0200 Subject: [PATCH] fix a glitch with wrong sorting by date taken --- .../gallery/pro/asynctasks/GetMediaAsynctask.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/asynctasks/GetMediaAsynctask.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/asynctasks/GetMediaAsynctask.kt index aa523e911..d14813aa5 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/asynctasks/GetMediaAsynctask.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/asynctasks/GetMediaAsynctask.kt @@ -38,7 +38,7 @@ class GetMediaAsynctask(val context: Context, val mPath: String, val isPickImage val media = ArrayList() foldersToScan.forEach { val newMedia = mediaFetcher.getFilesFrom(it, isPickImage, isPickVideo, getProperDateTaken, getProperLastModified, getProperFileSize, - favoritePaths, getVideoDurations, lastModifieds, dateTakens, null) + favoritePaths, getVideoDurations, lastModifieds, dateTakens.clone() as HashMap, null) media.addAll(newMedia) }