summaryrefslogtreecommitdiffstats
path: root/gallerycommon
diff options
context:
space:
mode:
authorOwen Lin <owenlin@google.com>2011-09-12 12:45:16 +0800
committerOwen Lin <owenlin@google.com>2011-09-12 16:07:55 +0800
commitd784763aec4ae3b3dac4e1d770c4249b8f6214aa (patch)
treee437cda35c168b00f01396bc429a17e4ab62592e /gallerycommon
parent54b86186df09b6f89dee4947f7872baed2b8ad5c (diff)
downloadandroid_packages_apps_Snap-d784763aec4ae3b3dac4e1d770c4249b8f6214aa.tar.gz
android_packages_apps_Snap-d784763aec4ae3b3dac4e1d770c4249b8f6214aa.tar.bz2
android_packages_apps_Snap-d784763aec4ae3b3dac4e1d770c4249b8f6214aa.zip
Fix picasa images rotate incorrectly.
fix: 5268469 Change-Id: I58fc4a6d4a10c2952040eedee5936efa949b66e2
Diffstat (limited to 'gallerycommon')
-rw-r--r--gallerycommon/src/com/android/gallery3d/common/BitmapUtils.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/gallerycommon/src/com/android/gallery3d/common/BitmapUtils.java b/gallerycommon/src/com/android/gallery3d/common/BitmapUtils.java
index 0686fe8cf..aaf4f6665 100644
--- a/gallerycommon/src/com/android/gallery3d/common/BitmapUtils.java
+++ b/gallerycommon/src/com/android/gallery3d/common/BitmapUtils.java
@@ -203,6 +203,7 @@ public class BitmapUtils {
}
public static Bitmap rotateBitmap(Bitmap source, int rotation, boolean recycle) {
+ if (rotation == 0) return source;
int w = source.getWidth();
int h = source.getHeight();
Matrix m = new Matrix();