Test for correctOrientation not rotate=0 when determining if we are in the special case where the image should just be retureturned to the user without modification.
Project: http://git-wip-us.apache.org/repos/asf/cordova-android/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-android/commit/26effd1d Tree: http://git-wip-us.apache.org/repos/asf/cordova-android/tree/26effd1d Diff: http://git-wip-us.apache.org/repos/asf/cordova-android/diff/26effd1d Branch: refs/heads/master Commit: 26effd1def270c36f7c5d34c478438b594f24119 Parents: 5f6824e Author: Simon MacDonald <simon.macdon...@gmail.com> Authored: Tue Jan 8 15:21:51 2013 -0500 Committer: Simon MacDonald <simon.macdon...@gmail.com> Committed: Tue Jan 8 15:21:55 2013 -0500 ---------------------------------------------------------------------- .../src/org/apache/cordova/CameraLauncher.java | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-android/blob/26effd1d/framework/src/org/apache/cordova/CameraLauncher.java ---------------------------------------------------------------------- diff --git a/framework/src/org/apache/cordova/CameraLauncher.java b/framework/src/org/apache/cordova/CameraLauncher.java index 49a68c0..f9edd10 100755 --- a/framework/src/org/apache/cordova/CameraLauncher.java +++ b/framework/src/org/apache/cordova/CameraLauncher.java @@ -322,7 +322,8 @@ public class CameraLauncher extends CordovaPlugin implements MediaScannerConnect } // If all this is true we shouldn't compress the image. - if (this.targetHeight == -1 && this.targetWidth == -1 && this.mQuality == 100 && rotate == 0) { + if (this.targetHeight == -1 && this.targetWidth == -1 && this.mQuality == 100 && + !this.correctOrientation) { writeUncompressedImage(uri); this.callbackContext.success(uri.toString());