// @{ SPRD: bug 258455 begin public void setTextViewVisibility(int visibility) { if (mModuleSwitcherView != null) { mModuleSwitcherView.setViewVisibility(visibility); mModuleSwitcherView.setVisibility(visibility); mModuleSwitcherView.setEnabled(visibility == VISIBLE); } } // SPRD: bug 258455 end
@Override protected void onConfigurationChanged(Configuration newConfig) { // TODO Auto-generated method stub super.onConfigurationChanged(newConfig); int orientation = getResources().getConfiguration().orientation; mModuleSwitcherView.setmConfiguration(orientation); }
@Override public boolean onTouchEvent(MotionEvent ev) { if (inCameraFullscreen()) { mModuleSwitcherView.onTouchEvent(ev); return true; } else return super.onTouchEvent(ev); }
// SPRD: CameraActivity use this method public void setModuleSwitcherView(ModuleSwitcherView v) { mModuleSwitcherView = v; int orientation = getResources().getConfiguration().orientation; // SPRD: reset the screen configuration mModuleSwitcherView.setmConfiguration(orientation); }