From e1c5631c58a7e8ce6d6cf749d3d23ab3fd355bc9 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 24 Oct 2021 19:19:38 +0200 Subject: [PATCH] fixed a glitch with files not being sorted properly in some cases --- .../com/simplemobiletools/gallery/pro/helpers/MediaFetcher.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/helpers/MediaFetcher.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/helpers/MediaFetcher.kt index 3574f46c0..c89e552c2 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/helpers/MediaFetcher.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/helpers/MediaFetcher.kt @@ -43,7 +43,7 @@ class MediaFetcher(val context: Context) { } else { val newMedia = getMediaInFolder( curPath, isPickImage, isPickVideo, filterMedia, getProperDateTaken, getProperLastModified, getProperFileSize, - favoritePaths, getVideoDurations, lastModifieds, dateTakens + favoritePaths, getVideoDurations, lastModifieds.clone() as HashMap, dateTakens.clone() as HashMap ) curMedia.addAll(newMedia) }