summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorJohn Hoford <hoford@google.com>2012-10-17 15:54:58 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-10-17 15:54:58 -0700
commit2aec35785f8265f7711e281dcbd56ccebcba9cf7 (patch)
treebd5c623dbb638bcc2ea7df3ebce1dbf8c1c2c58d /src/com
parentbb81280524bffa7511dc8a7af0aaaaa1cd4a2c1c (diff)
parent659432ae6323d21600dde816a831f63fd2210350 (diff)
downloadandroid_packages_apps_Snap-2aec35785f8265f7711e281dcbd56ccebcba9cf7.tar.gz
android_packages_apps_Snap-2aec35785f8265f7711e281dcbd56ccebcba9cf7.tar.bz2
android_packages_apps_Snap-2aec35785f8265f7711e281dcbd56ccebcba9cf7.zip
Merge "fix rotating normal images" into gb-ub-photos-arches
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/gallery3d/filtershow/cache/ImageLoader.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/gallery3d/filtershow/cache/ImageLoader.java b/src/com/android/gallery3d/filtershow/cache/ImageLoader.java
index 049c4a201..6beaed603 100644
--- a/src/com/android/gallery3d/filtershow/cache/ImageLoader.java
+++ b/src/com/android/gallery3d/filtershow/cache/ImageLoader.java
@@ -75,7 +75,6 @@ public class ImageLoader {
public void loadBitmap(Uri uri,int size) {
mUri = uri;
mOrientation = getOrientation(uri);
-
mOriginalBitmapSmall = loadScaledBitmap(uri, 160);
if (mOriginalBitmapSmall == null) {
// Couldn't read the bitmap, let's exit
@@ -161,7 +160,6 @@ public class ImageLoader {
h = tmp;
}
switch(ori){
- case ORI_NORMAL:
case ORI_ROTATE_90:
matrix.setRotate(90,w/2f,h/2f);
break;
@@ -185,7 +183,9 @@ public class ImageLoader {
matrix.setRotate(270,w/2f,h/2f);
matrix.preScale(1, -1);
break;
+ case ORI_NORMAL:
default:
+ return bitmap;
}
return Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth(),