cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bows...@apache.org
Subject [5/6] 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
Date Mon, 25 Mar 2013 23:05:06 GMT
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/4ab4606a
Tree: http://git-wip-us.apache.org/repos/asf/cordova-android/tree/4ab4606a
Diff: http://git-wip-us.apache.org/repos/asf/cordova-android/diff/4ab4606a

Branch: refs/heads/2.6.x
Commit: 4ab4606ad268ae0fde03e9d3f641202293cf0948
Parents: 957f2fd
Author: Joe Bowser <bowserj@apache.org>
Authored: Mon Mar 25 16:04:22 2013 -0700
Committer: Joe Bowser <bowserj@apache.org>
Committed: Mon Mar 25 16:04:22 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/4ab4606a/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 9473828..e0e61ee 100755
--- a/framework/src/org/apache/cordova/CameraLauncher.java
+++ b/framework/src/org/apache/cordova/CameraLauncher.java
@@ -444,7 +444,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();
                                         }
@@ -458,7 +458,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();
                                     }
 


Mime
View raw message