From 7e0ebaace9789705fac63d9fb113698ba8c12223 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 27 Sep 2020 21:22:30 +0200 Subject: [PATCH] properly fetch Date Taken values when needed --- .../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 7b03b6c54..9817db535 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 @@ -31,7 +31,7 @@ class GetMediaAsynctask(val context: Context, val mPath: String, val isPickImage val favoritePaths = context.getFavoritePaths() val getVideoDurations = context.config.showThumbnailVideoDuration val lastModifieds = if (isRPlus() && getProperLastModified) mediaFetcher.getLastModifieds() else HashMap() - val dateTakens = if (getProperLastModified) mediaFetcher.getDateTakens() else HashMap() + val dateTakens = if (getProperDateTaken) mediaFetcher.getDateTakens() else HashMap() val media = if (showAll) { val foldersToScan = mediaFetcher.getFoldersToScan().filter { it != RECYCLE_BIN && it != FAVORITES && !context.config.isFolderProtected(it) }