summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/data/MediaItem.java
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
commit22493b29c32142f2588c623f5c78e9167352dddc (patch)
tree70b44a37e13eb0ced07e116dc4f88d58fe8cfeeb /src/com/android/gallery3d/data/MediaItem.java
parent1d8303b290a0c2fba972886045027b38d0c38ab4 (diff)
downloadandroid_packages_apps_Gallery2-22493b29c32142f2588c623f5c78e9167352dddc.tar.gz
android_packages_apps_Gallery2-22493b29c32142f2588c623f5c78e9167352dddc.tar.bz2
android_packages_apps_Gallery2-22493b29c32142f2588c623f5c78e9167352dddc.zip
Fix picasa images rotate incorrectly.
fix: 5268469 Change-Id: I58fc4a6d4a10c2952040eedee5936efa949b66e2
Diffstat (limited to 'src/com/android/gallery3d/data/MediaItem.java')
-rw-r--r--src/com/android/gallery3d/data/MediaItem.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/data/MediaItem.java b/src/com/android/gallery3d/data/MediaItem.java
index 430d8327d..090625192 100644
--- a/src/com/android/gallery3d/data/MediaItem.java
+++ b/src/com/android/gallery3d/data/MediaItem.java
@@ -63,6 +63,12 @@ public abstract class MediaItem extends MediaObject {
return null;
}
+ // The rotation of the full-resolution image. By default, it returns the value of
+ // getRotation().
+ public int getFullImageRotation() {
+ return getRotation();
+ }
+
public int getRotation() {
return 0;
}