From 513bdfb28328e79c5fef5f5d4ebd0cf8c7fe7b88 Mon Sep 17 00:00:00 2001 From: Daniel Dornhardt Date: Mon, 25 Sep 2017 11:23:47 +0200 Subject: [PATCH] Allow the users to choose "Take Photo" again after picking an image from their gallery once The previous Version had a bug where once the user had picked the gallery from the action sheet, choosing "Take Photo" would still only let them choose an image from the gallery. --- camera-ui-cordova.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/camera-ui-cordova.js b/camera-ui-cordova.js index 810af50..dd31c0f 100644 --- a/camera-ui-cordova.js +++ b/camera-ui-cordova.js @@ -58,6 +58,8 @@ var takePicture = function (options, usingPhotoLibrary, callback) { var pictureOptions = getOptionsPerDevice(options); if (usingPhotoLibrary) { pictureOptions.sourceType = Camera.PictureSourceType.PHOTOLIBRARY; + } else { + pictureOptions.sourceType = Camera.PictureSourceType.CAMERA; } MeteorCamera.getPicture(pictureOptions, callback); };