From 82569b540f0b5317693a71519c3fa4a400b8da46 Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 25 May 2018 16:48:48 +0200 Subject: [PATCH] fetch date_taken only when needed --- .../com/simplemobiletools/gallery/helpers/MediaFetcher.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/MediaFetcher.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/MediaFetcher.kt index a2bfa6c5c..d6b93814e 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/MediaFetcher.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/MediaFetcher.kt @@ -148,7 +148,7 @@ class MediaFetcher(val context: Context) { val files = File(folder).listFiles() ?: return media val doExtraCheck = context.config.doExtraCheck val showHidden = context.config.shouldShowHidden - val sorting = SORT_BY_DATE_TAKEN //context.config.getFileSorting(folder) + val sorting = context.config.getFileSorting(folder) val dateTakens = if (sorting and SORT_BY_DATE_TAKEN != 0) getFolderDateTakens(folder) else HashMap() for (file in files) {