Skip to content

Commit

Permalink
Test for correctOrientation not rotate=0
Browse files Browse the repository at this point in the history
when determining if we are in the special case where the image should just be retureturned to the user without modification.
  • Loading branch information
macdonst committed Jan 8, 2013
1 parent 5f6824e commit 26effd1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion framework/src/org/apache/cordova/CameraLauncher.java
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,8 @@ else if (destType == FILE_URI) {
}

// 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());
Expand Down

0 comments on commit 26effd1

Please sign in to comment.