Skip to content

Commit

Permalink
[CB-2213] Add NATIVE_URI to the quick-return logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
agrieve committed Feb 14, 2013
1 parent 674b870 commit 2393883
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framework/src/org/apache/cordova/CameraLauncher.java
Original file line number Diff line number Diff line change
Expand Up @@ -389,9 +389,9 @@ else if ((srcType == PHOTOLIBRARY) || (srcType == SAVEDPHOTOALBUM)) {
}
else {
// This is a special case to just return the path as no scaling,
// rotating or compression needs to be done
// rotating, nor compressing needs to be done
if (this.targetHeight == -1 && this.targetWidth == -1 &&
this.mQuality == 100 && destType == FILE_URI && !this.correctOrientation) {
(destType == FILE_URI || destType == NATIVE_URI) && !this.correctOrientation) {
this.callbackContext.success(uri.toString());
} else {
// Get the path to the image. Makes loading so much easier.
Expand Down

0 comments on commit 2393883

Please sign in to comment.