From e0e4ba2bd7df332f621274728af45b1e64d05564 Mon Sep 17 00:00:00 2001 From: macdonst Date: Tue, 26 Jun 2012 22:24:05 -0400 Subject: [PATCH] Fix double image problem on Samsung phones On Samsung phones even if you tell the camera not to save to the photo gallery it still does. This small fix deletes the original file as it is not needed. --- framework/src/org/apache/cordova/CameraLauncher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/src/org/apache/cordova/CameraLauncher.java b/framework/src/org/apache/cordova/CameraLauncher.java index 04cd1c02..cfe58a61 100755 --- a/framework/src/org/apache/cordova/CameraLauncher.java +++ b/framework/src/org/apache/cordova/CameraLauncher.java @@ -559,7 +559,7 @@ public class CameraLauncher extends Plugin implements MediaScannerConnectionClie Cursor cursor = queryImgDB(contentStore); int currentNumOfImages = cursor.getCount(); - if (type == FILE_URI) { + if (type == FILE_URI && this.saveToPhotoAlbum) { diff = 2; }