From 42e8fd31838161da25bcbbee75efcf65a44a0fb3 Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 5 Jul 2018 23:39:55 +0200 Subject: [PATCH] update commons to 4.3.30 --- app/build.gradle | 2 +- .../com/simplemobiletools/camera/helpers/PhotoProcessor.kt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index 66b327d1..cfa4f549 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -45,7 +45,7 @@ ext { } dependencies { - implementation 'com.simplemobiletools:commons:4.3.29' + implementation 'com.simplemobiletools:commons:4.3.30' debugImplementation "com.squareup.leakcanary:leakcanary-android:$leakCanaryVersion" releaseImplementation "com.squareup.leakcanary:leakcanary-android-no-op:$leakCanaryVersion" diff --git a/app/src/main/kotlin/com/simplemobiletools/camera/helpers/PhotoProcessor.kt b/app/src/main/kotlin/com/simplemobiletools/camera/helpers/PhotoProcessor.kt index 2bee99c7..786b9907 100644 --- a/app/src/main/kotlin/com/simplemobiletools/camera/helpers/PhotoProcessor.kt +++ b/app/src/main/kotlin/com/simplemobiletools/camera/helpers/PhotoProcessor.kt @@ -82,6 +82,7 @@ class PhotoProcessor(val activity: MainActivity, val saveUri: Uri?, val deviceOr val deviceRot = compensateDeviceRotation(deviceOrientation, isUsingFrontCamera) var image = BitmapFactory.decodeByteArray(data, 0, data.size) val totalRotation = (imageRot + deviceRot + previewRotation) % 360 + if (path.startsWith(activity.internalStoragePath) || isNougatPlus() && !isThirdPartyIntent) { // do not rotate the image itself in these cases, rotate it by exif only } else {