[CB-2213] Add NATIVE_URI to the quick-return logic.

This commit is contained in:
Andrew Grieve 2013-02-14 10:50:37 -05:00
parent 674b87057a
commit 23938830f7

View File

@ -389,9 +389,9 @@ public class CameraLauncher extends CordovaPlugin implements MediaScannerConnect
} }
else { else {
// This is a special case to just return the path as no scaling, // 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 && 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()); this.callbackContext.success(uri.toString());
} else { } else {
// Get the path to the image. Makes loading so much easier. // Get the path to the image. Makes loading so much easier.