Loading build.gradle +1 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ buildscript { propMinSdkVersion = 21 propTargetSdkVersion = propCompileSdkVersion propVersionCode = 1 propVersionName = '5.5.16' propVersionName = '5.5.17' kotlin_version = '1.3.11' } Loading commons/src/main/kotlin/com/simplemobiletools/commons/extensions/ExifInterface.kt +6 −3 Original line number Diff line number Diff line Loading @@ -2,8 +2,8 @@ package com.simplemobiletools.commons.extensions import android.media.ExifInterface fun ExifInterface.copyTo(destination: ExifInterface) { val attributes = arrayOf( fun ExifInterface.copyTo(destination: ExifInterface, copyOrientation: Boolean = true) { val attributes = arrayListOf( ExifInterface.TAG_APERTURE, ExifInterface.TAG_DATETIME, ExifInterface.TAG_DATETIME_DIGITIZED, Loading @@ -25,9 +25,12 @@ fun ExifInterface.copyTo(destination: ExifInterface) { ExifInterface.TAG_ISO_SPEED_RATINGS, ExifInterface.TAG_MAKE, ExifInterface.TAG_MODEL, ExifInterface.TAG_ORIENTATION, ExifInterface.TAG_WHITE_BALANCE) if (copyOrientation) { attributes.add(ExifInterface.TAG_ORIENTATION) } attributes.forEach { val value = getAttribute(it) if (value != null) { Loading Loading
build.gradle +1 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ buildscript { propMinSdkVersion = 21 propTargetSdkVersion = propCompileSdkVersion propVersionCode = 1 propVersionName = '5.5.16' propVersionName = '5.5.17' kotlin_version = '1.3.11' } Loading
commons/src/main/kotlin/com/simplemobiletools/commons/extensions/ExifInterface.kt +6 −3 Original line number Diff line number Diff line Loading @@ -2,8 +2,8 @@ package com.simplemobiletools.commons.extensions import android.media.ExifInterface fun ExifInterface.copyTo(destination: ExifInterface) { val attributes = arrayOf( fun ExifInterface.copyTo(destination: ExifInterface, copyOrientation: Boolean = true) { val attributes = arrayListOf( ExifInterface.TAG_APERTURE, ExifInterface.TAG_DATETIME, ExifInterface.TAG_DATETIME_DIGITIZED, Loading @@ -25,9 +25,12 @@ fun ExifInterface.copyTo(destination: ExifInterface) { ExifInterface.TAG_ISO_SPEED_RATINGS, ExifInterface.TAG_MAKE, ExifInterface.TAG_MODEL, ExifInterface.TAG_ORIENTATION, ExifInterface.TAG_WHITE_BALANCE) if (copyOrientation) { attributes.add(ExifInterface.TAG_ORIENTATION) } attributes.forEach { val value = getAttribute(it) if (value != null) { Loading