From f73f8ad1c547a8b357b3ff8e926198ce06265e7b Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 1 Apr 2018 12:16:46 +0200 Subject: [PATCH] fix a condition check --- .../com/simplemobiletools/camera/helpers/PhotoProcessor.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 f1ce1c0a..7863a4f2 100644 --- a/app/src/main/kotlin/com/simplemobiletools/camera/helpers/PhotoProcessor.kt +++ b/app/src/main/kotlin/com/simplemobiletools/camera/helpers/PhotoProcessor.kt @@ -78,7 +78,7 @@ class PhotoProcessor(val activity: MainActivity, val uri: Uri?, val currCameraId val imageRot = orient.degreesFromOrientation() val totalRotation = (imageRot + deviceRot + previewRot) % 360 - if (!activity.isPathOnSD(path) && !isNougatPlus()) { + if (activity.isPathOnSD(path) && !isNougatPlus()) { image = rotate(image, totalRotation) }