set requested screen orientation. Seems to prevent going into

landscape mode when keyboard opened.
This commit is contained in:
Andy2 2011-03-11 21:52:37 -08:00
parent 84d0823341
commit 257d7cf094

View file

@ -273,6 +273,8 @@ public class BoardActivity extends XWActivity
Utils.logf( "BoardActivity::onCreate()" );
super.onCreate( savedInstanceState );
setRequestedOrientation( ActivityInfo.SCREEN_ORIENTATION_PORTRAIT );
if ( CommonPrefs.getHideTitleBar( this ) ) {
requestWindowFeature( Window.FEATURE_NO_TITLE );
}
@ -339,18 +341,6 @@ public class BoardActivity extends XWActivity
}
}
@Override
public void onConfigurationChanged( Configuration newConfig )
{
m_currentOrient = newConfig.orientation;
if ( null != m_toolbar ) {
boolean landscape =
m_currentOrient == Configuration.ORIENTATION_LANDSCAPE;
m_toolbar.orientChanged( landscape );
}
super.onConfigurationChanged( newConfig );
}
@Override
public boolean onKeyDown( int keyCode, KeyEvent event )
{