From 44f5bb5c1e2a2160429c284140b6cfbcd3975c30 Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 25 Sep 2020 12:26:14 +0200 Subject: [PATCH] get proper last modified at AsyncTask only if 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 141f5236c..16e3f251d 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 @@ -33,7 +33,7 @@ class GetMediaAsynctask(val context: Context, val mPath: String, val isPickImage val getProperFileSize = fileSorting and SORT_BY_SIZE != 0 val favoritePaths = context.getFavoritePaths() val getVideoDurations = context.config.showThumbnailVideoDuration - val lastModifieds = if (isRPlus()) mediaFetcher.getLastModifieds() else HashMap() + val lastModifieds = if (isRPlus() && getProperLastModified) mediaFetcher.getLastModifieds() else HashMap() val media = if (showAll) { val foldersToScan = mediaFetcher.getFoldersToScan().filter { it != RECYCLE_BIN && it != FAVORITES && !context.config.isFolderProtected(it) } val media = ArrayList()