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 9eb25e98f..ef2a6c52a 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 @@ -487,15 +487,15 @@ class MediaFetcher(val context: Context) { } catch (e: Exception) { } } + + val dateTakenValues = context.dateTakensDB.getAllDateTakens() + + dateTakenValues.forEach { + dateTakens[it.fullPath] = it.taken + } } catch (e: Exception) { } - val dateTakenValues = context.dateTakensDB.getAllDateTakens() - - dateTakenValues.forEach { - dateTakens[it.fullPath] = it.taken - } - return dateTakens }