OSDN Git Service

Turn on unlockOrientation to make onConfigurationChanged in camera work.
authorPin Ting <pinting@google.com>
Thu, 3 May 2012 00:26:17 +0000 (08:26 +0800)
committerPin Ting <pinting@google.com>
Thu, 3 May 2012 02:05:08 +0000 (10:05 +0800)
Bug:6304805
Change-Id: Ia5a8df4153a7ddc7847a8a3744a3537120edb143

src/com/android/gallery3d/app/PhotoPage.java

index 1851b97..a43034c 100644 (file)
@@ -128,6 +128,7 @@ public class PhotoPage extends ActivityState implements
     }
 
     private class MyMenuVisibilityListener implements OnMenuVisibilityListener {
+        @Override
         public void onMenuVisibilityChanged(boolean isVisible) {
             mIsMenuVisible = isVisible;
             refreshHidingMessage();
@@ -567,6 +568,7 @@ public class PhotoPage extends ActivityState implements
         if (mDetailsHelper == null) {
             mDetailsHelper = new DetailsHelper(mActivity, mRootPane, new MyDetailsSource());
             mDetailsHelper.setCloseListener(new CloseListener() {
+                @Override
                 public void onClose() {
                     hideDetails();
                 }
@@ -617,8 +619,7 @@ public class PhotoPage extends ActivityState implements
 
     @Override
     public void unlockOrientation() {
-        // Temporarily disabled until Camera UI can switch orientation.
-        // mHandler.sendEmptyMessage(MSG_UNLOCK_ORIENTATION);
+        mHandler.sendEmptyMessage(MSG_UNLOCK_ORIENTATION);
     }
 
     @Override