diff options
author | Owen Lin <owenlin@google.com> | 2011-09-12 12:45:16 +0800 |
---|---|---|
committer | Owen Lin <owenlin@google.com> | 2011-09-12 16:07:55 +0800 |
commit | b251df22a421b5affb15d7a18700889647dbc856 (patch) | |
tree | 81ea21989ba614fd80197afbdf434baf2e42af47 /gallerycommon/src/com/android/gallery3d | |
parent | 6a5a246ca7973054364f5ee8ca2df3164bf38458 (diff) | |
download | android_packages_apps_Snap-b251df22a421b5affb15d7a18700889647dbc856.tar.gz android_packages_apps_Snap-b251df22a421b5affb15d7a18700889647dbc856.tar.bz2 android_packages_apps_Snap-b251df22a421b5affb15d7a18700889647dbc856.zip |
Fix picasa images rotate incorrectly.
fix: 5268469
Change-Id: I58fc4a6d4a10c2952040eedee5936efa949b66e2
Diffstat (limited to 'gallerycommon/src/com/android/gallery3d')
-rw-r--r-- | gallerycommon/src/com/android/gallery3d/common/BitmapUtils.java | 1 |
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(); |