fix #1669, add a workaround for refreshing file thumbnail after edit

This commit is contained in:
tibbi 2019-12-20 19:42:28 +01:00
parent f2fd6c29a7
commit 3957532c72

View file

@ -140,7 +140,8 @@ class NewEditActivity : SimpleActivity() {
private val editCopyMoveListener = object : CopyMoveListener { private val editCopyMoveListener = object : CopyMoveListener {
override fun copySucceeded(copyOnly: Boolean, copiedAll: Boolean, destinationPath: String) { override fun copySucceeded(copyOnly: Boolean, copiedAll: Boolean, destinationPath: String) {
if (config.keepLastModified) { 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) val paths = arrayListOf(destinationFilePath)