You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by bo...@apache.org on 2013/03/28 18:02:57 UTC

[4/5] android commit: Fixing CB-1700, we had the file names reversed, so exif was never being written right. Needed to upload a file to debug this thing

Fixing CB-1700, we had the file names reversed, so exif was never being written right.  Needed to upload a file to debug this thing


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

Branch: refs/heads/master
Commit: 334cf45d6d0e6af5e18c2a24884d2e134fc9e64d
Parents: b7bb722
Author: Joe Bowser <bo...@apache.org>
Authored: Mon Mar 25 16:04:22 2013 -0700
Committer: Joe Bowser <bo...@apache.org>
Committed: Thu Mar 28 10:02:18 2013 -0700

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


http://git-wip-us.apache.org/repos/asf/cordova-android/blob/334cf45d/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 03b7712..22a9b94 100755
--- a/framework/src/org/apache/cordova/CameraLauncher.java
+++ b/framework/src/org/apache/cordova/CameraLauncher.java
@@ -446,7 +446,7 @@ public class CameraLauncher extends CordovaPlugin implements MediaScannerConnect
                                     ExifHelper exif = new ExifHelper();
                                     try {
                                         if (this.encodingType == JPEG) {
-                                            exif.createInFile(resizePath);
+                                            exif.createInFile(FileHelper.getRealPath(uri, this.cordova));
                                             exif.readExifData();
                                             rotate = exif.getOrientation();
                                         }
@@ -460,7 +460,7 @@ public class CameraLauncher extends CordovaPlugin implements MediaScannerConnect
 
                                     // Restore exif data to file
                                     if (this.encodingType == JPEG) {
-                                        exif.createOutFile(FileHelper.getRealPath(uri, this.cordova));
+                                        exif.createOutFile(resizePath);
                                         exif.writeExifData();
                                     }