diff --git a/src/android/CameraLauncher.java b/src/android/CameraLauncher.java index b91e358f5..a6a2d0ed1 100644 --- a/src/android/CameraLauncher.java +++ b/src/android/CameraLauncher.java @@ -215,7 +215,7 @@ else if ((this.srcType == PHOTOLIBRARY) || (this.srcType == SAVEDPHOTOALBUM)) { return true; } if (action.equals("stop")) { - this.stopCamera(); + this.stopCamera(destType); return true; } return false; @@ -355,7 +355,7 @@ public void takePicture(int returnType, int encodingType) // LOG.d(LOG_TAG, "ERROR: You must use the CordovaInterface for this to work correctly. Please implement it in your activity"); } - public void stopCamera() { + public void stopCamera(int returnType) { LOG.d(LOG_TAG,"Stopping Camera"); try { this.cordova.getActivity().finishActivity((CAMERA + 1) * 16 + returnType + 1); diff --git a/www/Camera.js b/www/Camera.js index a00f2cf7b..7fd37b601 100644 --- a/www/Camera.js +++ b/www/Camera.js @@ -155,7 +155,7 @@ cameraExport.getPicture = function (successCallback, errorCallback, options) { * Closes the Camera on calling this method */ cameraExport.stop = function (successCallback, errorCallback) { - exec(successCallback, errorCallback, 'Camera', 'stop', []); + exec(successCallback, errorCallback, 'Camera', 'stop', []); }; /**