incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From macdo...@apache.org
Subject [3/8] android commit: Fix double image problem on Samsung phones
Date Thu, 28 Jun 2012 16:33:45 GMT
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.


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/commit/e0e4ba2b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/tree/e0e4ba2b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/diff/e0e4ba2b

Branch: refs/heads/master
Commit: e0e4ba2bd7df332f621274728af45b1e64d05564
Parents: e0eadb6
Author: macdonst <simon.macdonald@gmail.com>
Authored: Tue Jun 26 22:24:05 2012 -0400
Committer: macdonst <simon.macdonald@gmail.com>
Committed: Thu Jun 28 12:00:19 2012 -0400

----------------------------------------------------------------------
 .../src/org/apache/cordova/CameraLauncher.java     |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/e0e4ba2b/framework/src/org/apache/cordova/CameraLauncher.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/CameraLauncher.java b/framework/src/org/apache/cordova/CameraLauncher.java
index 04cd1c0..cfe58a6 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;
         }
 


Mime
View raw message