From 51d1d5f268ff0d477a4ab9cae23aed07ced60e6d Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 11 Jun 2018 12:44:18 +0200 Subject: [PATCH] make sure the new exif values are saved --- build.gradle | 2 +- .../com/simplemobiletools/commons/extensions/ExifInterface.kt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 085ac7a1a..7b167e94b 100644 --- a/build.gradle +++ b/build.gradle @@ -7,7 +7,7 @@ buildscript { propMinSdkVersion = 16 propTargetSdkVersion = propCompileSdkVersion propVersionCode = 1 - propVersionName = '4.1.5' + propVersionName = '4.1.6' kotlin_version = '1.2.41' support_libs = '27.1.1' } diff --git a/commons/src/main/kotlin/com/simplemobiletools/commons/extensions/ExifInterface.kt b/commons/src/main/kotlin/com/simplemobiletools/commons/extensions/ExifInterface.kt index f17228ada..9a7eb9b6a 100644 --- a/commons/src/main/kotlin/com/simplemobiletools/commons/extensions/ExifInterface.kt +++ b/commons/src/main/kotlin/com/simplemobiletools/commons/extensions/ExifInterface.kt @@ -34,4 +34,5 @@ fun ExifInterface.copyTo(destination: ExifInterface) { destination.setAttribute(it, value) } } + destination.saveAttributes() }