fix a condition check
This commit is contained in:
parent
15e24a7f83
commit
f73f8ad1c5
|
@ -78,7 +78,7 @@ class PhotoProcessor(val activity: MainActivity, val uri: Uri?, val currCameraId
|
||||||
val imageRot = orient.degreesFromOrientation()
|
val imageRot = orient.degreesFromOrientation()
|
||||||
|
|
||||||
val totalRotation = (imageRot + deviceRot + previewRot) % 360
|
val totalRotation = (imageRot + deviceRot + previewRot) % 360
|
||||||
if (!activity.isPathOnSD(path) && !isNougatPlus()) {
|
if (activity.isPathOnSD(path) && !isNougatPlus()) {
|
||||||
image = rotate(image, totalRotation)
|
image = rotate(image, totalRotation)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue