From e26892775683d7acfe852b75791ac5670daa8ab3 Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 8 Oct 2021 20:30:54 +0200 Subject: [PATCH] rescan files after editing --- app/build.gradle | 2 +- .../gallery/pro/activities/EditActivity.kt | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 03e0d0cf1..f81e5b2d9 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -78,7 +78,7 @@ android { } dependencies { - implementation 'com.github.SimpleMobileTools:Simple-Commons:3e78714205' + implementation 'com.github.SimpleMobileTools:Simple-Commons:8663595392' implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.0' implementation 'it.sephiroth.android.exif:library:1.0.1' implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.22' 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 9b59219e0..8a082817f 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 @@ -887,9 +887,11 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener private fun scanFinalPath(path: String) { val paths = arrayListOf(path) - fixDateTaken(paths, false) - setResult(Activity.RESULT_OK, intent) - toast(R.string.file_saved) - finish() + rescanPaths(paths) { + fixDateTaken(paths, false) + setResult(Activity.RESULT_OK, intent) + toast(R.string.file_saved) + finish() + } } }