From 289e82cc1e3d7e52c1bbbfa3cae66e1fead3516d Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 13 Jan 2017 23:41:27 +0100 Subject: [PATCH] what a stupid condition --- .../gallery/asynctasks/GetDirectoriesAsynctask.kt | 3 +-- .../simplemobiletools/gallery/asynctasks/GetMediaAsynctask.kt | 3 +-- 2 files changed, 2 insertions(+), 4 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 ab890613f..2ea0daedd 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/asynctasks/GetDirectoriesAsynctask.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/asynctasks/GetDirectoriesAsynctask.kt @@ -10,7 +10,6 @@ import com.simplemobiletools.gallery.extensions.config import com.simplemobiletools.gallery.extensions.getHumanizedFilename import com.simplemobiletools.gallery.extensions.getParents import com.simplemobiletools.gallery.helpers.IMAGES -import com.simplemobiletools.gallery.helpers.SORT_BY_DATE_MODIFIED import com.simplemobiletools.gallery.helpers.VIDEOS import com.simplemobiletools.gallery.models.Directory import com.simplemobiletools.gallery.models.Medium @@ -49,7 +48,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 file.lastModified() + val dateModified = 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 26d2df20a..5c501a9ed 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/asynctasks/GetMediaAsynctask.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/asynctasks/GetMediaAsynctask.kt @@ -9,7 +9,6 @@ import com.simplemobiletools.gallery.extensions.config import com.simplemobiletools.gallery.extensions.getParents import com.simplemobiletools.gallery.helpers.IMAGES import com.simplemobiletools.gallery.helpers.IMAGES_AND_VIDEOS -import com.simplemobiletools.gallery.helpers.SORT_BY_DATE_MODIFIED import com.simplemobiletools.gallery.helpers.VIDEOS import com.simplemobiletools.gallery.models.Medium import java.io.File @@ -68,7 +67,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 file.lastModified() + val dateModified = file.lastModified() media.add(Medium(name, absolutePath, isVideo, dateModified, dateModified, size)) } return media