OSDN Git Service

Don't show menu/indicators in wide-angle mode.
authorAngus Kong <shkong@google.com>
Fri, 13 Sep 2013 21:55:31 +0000 (14:55 -0700)
committerAngus Kong <shkong@google.com>
Fri, 13 Sep 2013 23:04:13 +0000 (16:04 -0700)
  bug:10674078

Change-Id: I08edd11ead1c71cd6b81274938c92f788c039a8f

src/com/android/camera/WideAnglePanoramaUI.java

index 0ce9d62..7c84646 100644 (file)
@@ -97,7 +97,6 @@ public class WideAnglePanoramaUI implements
 
         createContentView();
         mSwitcher = (ModuleSwitcher) mRootView.findViewById(R.id.camera_switcher);
-        Log.v(TAG, "setting CurrentIndex:" + ModuleSwitcher.WIDE_ANGLE_PANO_MODULE_INDEX);
         mSwitcher.setCurrentIndex(ModuleSwitcher.WIDE_ANGLE_PANO_MODULE_INDEX);
         mSwitcher.setSwitchListener(mActivity);
     }
@@ -380,6 +379,9 @@ public class WideAnglePanoramaUI implements
         mShutterButton = (ShutterButton) mRootView.findViewById(R.id.shutter_button);
         mShutterButton.setImageResource(R.drawable.btn_new_shutter);
         mShutterButton.setOnShutterButtonListener(this);
+        // Hide menu and indicators.
+        mRootView.findViewById(R.id.menu).setVisibility(View.GONE);
+        mRootView.findViewById(R.id.on_screen_indicators).setVisibility(View.GONE);
     }
 
     private void showTooFastIndication() {