CB-426: camera.getPicture ignores mediaType in 1.5

This commit is contained in:
macdonst 2012-04-03 13:02:25 -04:00
parent a37d0699db
commit 0577b4bf5d

View File

@ -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);