From b251df22a421b5affb15d7a18700889647dbc856 Mon Sep 17 00:00:00 2001 From: Owen Lin Date: Mon, 12 Sep 2011 12:45:16 +0800 Subject: Fix picasa images rotate incorrectly. fix: 5268469 Change-Id: I58fc4a6d4a10c2952040eedee5936efa949b66e2 --- gallerycommon/src/com/android/gallery3d/common/BitmapUtils.java | 1 + 1 file changed, 1 insertion(+) (limited to 'gallerycommon/src/com/android/gallery3d') 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(); -- cgit v1.2.3