コード例 #1
0
 @Override
 protected void onConfigurationChanged(Configuration newConfig) {
   // TODO Auto-generated method stub
   super.onConfigurationChanged(newConfig);
   int orientation = getResources().getConfiguration().orientation;
   mModuleSwitcherView.setmConfiguration(orientation);
 }
コード例 #2
0
 // 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);
 }