From 3957532c724f11f341b5973efac1b338878b4c3a Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 20 Dec 2019 19:42:28 +0100 Subject: [PATCH] fix #1669, add a workaround for refreshing file thumbnail after edit --- .../gallery/pro/activities/NewEditActivity.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/NewEditActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/NewEditActivity.kt index e984c20b5..7d03715a0 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/NewEditActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/NewEditActivity.kt @@ -140,7 +140,8 @@ class NewEditActivity : SimpleActivity() { private val editCopyMoveListener = object : CopyMoveListener { override fun copySucceeded(copyOnly: Boolean, copiedAll: Boolean, destinationPath: String) { if (config.keepLastModified) { - updateLastModified(destinationFilePath, sourceFileLastModified) + // add 1 s to the last modified time to properly update the thumbnail + updateLastModified(destinationFilePath, sourceFileLastModified + 1000) } val paths = arrayListOf(destinationFilePath)