mirror of
https://github.com/apache/cordova-android.git
synced 2025-03-31 03:22:58 +08:00
[CB-2213] Add NATIVE_URI to the quick-return logic.
This commit is contained in:
parent
674b87057a
commit
23938830f7
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user