From 067caeeeeb6f52e22d33a49d55b05d2f46c7d7cf Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 12 Feb 2020 22:42:30 +0100 Subject: [PATCH] always copy over exif data at file editing --- .../gallery/pro/activities/NewEditActivity.kt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 c7fb6b29b..c7b625ae0 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 @@ -185,14 +185,14 @@ class NewEditActivity : SimpleActivity() { if (config.keepLastModified) { // add 1 s to the last modified time to properly update the thumbnail updateLastModified(destinationFilePath, sourceFileLastModified + 1000) + } - try { - if (isNougatPlus()) { - val newExif = ExifInterface(destinationFilePath) - oldExif?.copyTo(newExif, false) - } - } catch (ignored: Exception) { + try { + if (isNougatPlus()) { + val newExif = ExifInterface(destinationFilePath) + oldExif?.copyTo(newExif, false) } + } catch (ignored: Exception) { } val paths = arrayListOf(destinationFilePath)