mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-20 23:56:20 +08:00
Camera default destination should be FILE_URI
This commit is contained in:
parent
b106d2cae8
commit
1d5af102c7
@ -127,7 +127,7 @@ Camera.prototype.getPicture = function(successCallback, errorCallback, options)
|
||||
options.maxResolution = 0;
|
||||
}
|
||||
if (options.destinationType === null || typeof options.destinationType === "undefined") {
|
||||
options.destinationType = Camera.DestinationType.DATA_URL;
|
||||
options.destinationType = Camera.DestinationType.FILE_URI;
|
||||
}
|
||||
if (options.sourceType === null || typeof options.sourceType === "undefined") {
|
||||
options.sourceType = Camera.PictureSourceType.CAMERA;
|
||||
|
@ -101,7 +101,7 @@ public class CameraLauncher extends Plugin {
|
||||
try {
|
||||
if (action.equals("takePicture")) {
|
||||
int srcType = CAMERA;
|
||||
int destType = DATA_URL;
|
||||
int destType = FILE_URI;
|
||||
this.targetHeight = 0;
|
||||
this.targetWidth = 0;
|
||||
this.encodingType = JPEG;
|
||||
|
Loading…
Reference in New Issue
Block a user