From c1f1e92c14cb57d1890189df63ee1b0e542369fe Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 13 Jan 2017 23:38:56 +0100 Subject: [PATCH] lets always use lastModified as dateTaken and hope nobody is using it --- .../gallery/asynctasks/GetDirectoriesAsynctask.kt | 2 +- .../simplemobiletools/gallery/asynctasks/GetMediaAsynctask.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/asynctasks/GetDirectoriesAsynctask.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/asynctasks/GetDirectoriesAsynctask.kt index 1aedc5873..ab890613f 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/asynctasks/GetDirectoriesAsynctask.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/asynctasks/GetDirectoriesAsynctask.kt @@ -49,7 +49,7 @@ class GetDirectoriesAsynctask(val context: Context, val isPickVideo: Boolean, va val name = file.name val path = file.absolutePath - val dateModified = if (fileSorting and SORT_BY_DATE_MODIFIED != 0) file.lastModified() else 0 + val dateModified = if (fileSorting and SORT_BY_DATE_MODIFIED != 0) file.lastModified() else file.lastModified() media.add(Medium(name, path, isVideo, dateModified, dateModified, size)) } } diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/asynctasks/GetMediaAsynctask.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/asynctasks/GetMediaAsynctask.kt index 4bc5042da..26d2df20a 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/asynctasks/GetMediaAsynctask.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/asynctasks/GetMediaAsynctask.kt @@ -68,7 +68,7 @@ class GetMediaAsynctask(val context: Context, val mPath: String, val isPickVideo val name = file.name val absolutePath = file.absolutePath - val dateModified = if (fileSorting and SORT_BY_DATE_MODIFIED != 0) file.lastModified() else 0 + val dateModified = if (fileSorting and SORT_BY_DATE_MODIFIED != 0) file.lastModified() else file.lastModified() media.add(Medium(name, absolutePath, isVideo, dateModified, dateModified, size)) } return media