summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/app/PhotoPage.java
diff options
context:
space:
mode:
authorAngus Kong <shkong@google.com>2012-05-16 19:15:56 -0700
committerChih-Chung Chang <chihchung@google.com>2012-05-17 11:19:43 -0700
commitd5c545b45ac938dd358f0eb3af40a574a6e96a09 (patch)
tree046f57dd636e81e59fbb84c91bdc0d1849b84e47 /src/com/android/gallery3d/app/PhotoPage.java
parent433a2e5b10824f5355eec02765b0c9ad6ac6c87c (diff)
downloadandroid_packages_apps_Snap-d5c545b45ac938dd358f0eb3af40a574a6e96a09.tar.gz
android_packages_apps_Snap-d5c545b45ac938dd358f0eb3af40a574a6e96a09.tar.bz2
android_packages_apps_Snap-d5c545b45ac938dd358f0eb3af40a574a6e96a09.zip
Support Panorama preview.
The panorama preview doesn't consider display rotation. bug:6305152 Change-Id: I6b87c18ed8eadf1b2bf5e64437c5b290d111cbba
Diffstat (limited to 'src/com/android/gallery3d/app/PhotoPage.java')
-rw-r--r--src/com/android/gallery3d/app/PhotoPage.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/app/PhotoPage.java b/src/com/android/gallery3d/app/PhotoPage.java
index 493e4aaf4..595e35bb7 100644
--- a/src/com/android/gallery3d/app/PhotoPage.java
+++ b/src/com/android/gallery3d/app/PhotoPage.java
@@ -213,7 +213,8 @@ public class PhotoPage extends ActivityState implements
}
PhotoDataAdapter pda = new PhotoDataAdapter(
mActivity, mPhotoView, mMediaSet, itemPath, mCurrentIndex,
- mAppBridge == null ? -1 : 0);
+ mAppBridge == null ? -1 : 0,
+ mAppBridge == null ? false : mAppBridge.isPanorama());
mModel = pda;
mPhotoView.setModel(mModel);