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 | d784763aec4ae3b3dac4e1d770c4249b8f6214aa (patch) | |
tree | e437cda35c168b00f01396bc429a17e4ab62592e /gallerycommon/src/com/android/gallery3d/common/BitmapUtils.java | |
parent | 54b86186df09b6f89dee4947f7872baed2b8ad5c (diff) | |
download | android_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/src/com/android/gallery3d/common/BitmapUtils.java')
-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(); |