summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/app/PhotoPage.java
diff options
context:
space:
mode:
authorYour Name <jreck@google.com>2012-11-26 16:33:49 -0800
committerYour Name <jreck@google.com>2012-11-27 15:17:35 -0800
commita314235e093032c2d6cdd1f1d3f6b5c10c3e75a7 (patch)
tree8ca49df903c27a265f2b723ee82f2e37ee74ff31 /src/com/android/gallery3d/app/PhotoPage.java
parent370ec0d435e43763f3e7c4804420bf44d9a39a97 (diff)
downloadandroid_packages_apps_Snap-a314235e093032c2d6cdd1f1d3f6b5c10c3e75a7.tar.gz
android_packages_apps_Snap-a314235e093032c2d6cdd1f1d3f6b5c10c3e75a7.tar.bz2
android_packages_apps_Snap-a314235e093032c2d6cdd1f1d3f6b5c10c3e75a7.zip
Remove orientation compensation
Bug: 7446056 Change-Id: I6f00617c890961e4d56545406bac9682356c0b15
Diffstat (limited to 'src/com/android/gallery3d/app/PhotoPage.java')
-rw-r--r--src/com/android/gallery3d/app/PhotoPage.java9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/com/android/gallery3d/app/PhotoPage.java b/src/com/android/gallery3d/app/PhotoPage.java
index cda0f341c..b43cf2a70 100644
--- a/src/com/android/gallery3d/app/PhotoPage.java
+++ b/src/com/android/gallery3d/app/PhotoPage.java
@@ -72,7 +72,7 @@ import com.android.gallery3d.ui.SynchronizedHandler;
import com.android.gallery3d.util.GalleryUtils;
public class PhotoPage extends ActivityState implements
- PhotoView.Listener, OrientationManager.Listener, AppBridge.Server,
+ PhotoView.Listener, AppBridge.Server,
PhotoPageBottomControls.Delegate, GalleryActionBar.OnAlbumModeSelectedListener {
private static final String TAG = "PhotoPage";
@@ -285,7 +285,6 @@ public class PhotoPage extends ActivityState implements
mRootPane.addComponent(mPhotoView);
mApplication = (GalleryApp) ((Activity) mActivity).getApplication();
mOrientationManager = mActivity.getOrientationManager();
- mOrientationManager.addListener(this);
mActivity.getGLRoot().setOrientationSource(mOrientationManager);
mHandler = new SynchronizedHandler(mActivity.getGLRoot()) {
@@ -865,11 +864,6 @@ public class PhotoPage extends ActivityState implements
}
@Override
- public void onOrientationCompensationChanged() {
- mActivity.getGLRoot().requestLayoutContentPane();
- }
-
- @Override
protected void onBackPressed() {
if (mShowDetails) {
hideDetails();
@@ -1424,7 +1418,6 @@ public class PhotoPage extends ActivityState implements
mScreenNailSet = null;
mScreenNailItem = null;
}
- mOrientationManager.removeListener(this);
mActivity.getGLRoot().setOrientationSource(null);
if (mBottomControls != null) mBottomControls.cleanup();