mirror of
https://github.com/apache/cordova-android.git
synced 2025-03-04 00:13:20 +08:00
CB-426: camera.getPicture ignores mediaType in 1.5
This commit is contained in:
parent
a37d0699db
commit
0577b4bf5d
@ -31,8 +31,6 @@ import org.apache.cordova.api.Plugin;
|
|||||||
import org.apache.cordova.api.PluginResult;
|
import org.apache.cordova.api.PluginResult;
|
||||||
import org.json.JSONArray;
|
import org.json.JSONArray;
|
||||||
import org.json.JSONException;
|
import org.json.JSONException;
|
||||||
import org.json.JSONObject;
|
|
||||||
|
|
||||||
|
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.content.ContentValues;
|
import android.content.ContentValues;
|
||||||
@ -115,6 +113,7 @@ public class CameraLauncher extends Plugin {
|
|||||||
this.targetWidth = args.getInt(3);
|
this.targetWidth = args.getInt(3);
|
||||||
this.targetHeight = args.getInt(4);
|
this.targetHeight = args.getInt(4);
|
||||||
this.encodingType = args.getInt(5);
|
this.encodingType = args.getInt(5);
|
||||||
|
this.mediaType = args.getInt(6);
|
||||||
|
|
||||||
if (srcType == CAMERA) {
|
if (srcType == CAMERA) {
|
||||||
this.takePicture(destType, encodingType);
|
this.takePicture(destType, encodingType);
|
||||||
|
Loading…
Reference in New Issue
Block a user