From 23938830f7f8c8fe3ed031ae323bbd4008d7d543 Mon Sep 17 00:00:00 2001 From: Andrew Grieve Date: Thu, 14 Feb 2013 10:50:37 -0500 Subject: [PATCH] [CB-2213] Add NATIVE_URI to the quick-return logic. --- framework/src/org/apache/cordova/CameraLauncher.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/src/org/apache/cordova/CameraLauncher.java b/framework/src/org/apache/cordova/CameraLauncher.java index 9f3a56f2..aec0def2 100755 --- a/framework/src/org/apache/cordova/CameraLauncher.java +++ b/framework/src/org/apache/cordova/CameraLauncher.java @@ -389,9 +389,9 @@ public class CameraLauncher extends CordovaPlugin implements MediaScannerConnect } 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.