From 94d34904d546acc93f8a0f4d8b3a80b60fceedbd Mon Sep 17 00:00:00 2001 From: tibbi Date: Sat, 7 Sep 2019 17:25:59 +0200 Subject: [PATCH] properly handle date taken after editing too --- .../simplemobiletools/gallery/pro/activities/EditActivity.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/EditActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/EditActivity.kt index 2e6741f26..d96a77c50 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/EditActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/EditActivity.kt @@ -39,6 +39,7 @@ import com.simplemobiletools.gallery.pro.dialogs.OtherAspectRatioDialog import com.simplemobiletools.gallery.pro.dialogs.ResizeDialog import com.simplemobiletools.gallery.pro.dialogs.SaveAsDialog import com.simplemobiletools.gallery.pro.extensions.config +import com.simplemobiletools.gallery.pro.extensions.fixDateTaken import com.simplemobiletools.gallery.pro.extensions.openEditor import com.simplemobiletools.gallery.pro.helpers.* import com.simplemobiletools.gallery.pro.models.FilterItem @@ -874,7 +875,9 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener } private fun scanFinalPath(path: String) { - rescanPaths(arrayListOf(path)) { + val paths = arrayListOf(path) + rescanPaths(paths) { + fixDateTaken(paths, false) setResult(Activity.RESULT_OK, intent) toast(R.string.file_saved) finish()