mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-15 15:41:24 +01:00
set requested screen orientation. Seems to prevent going into
landscape mode when keyboard opened.
This commit is contained in:
parent
84d0823341
commit
257d7cf094
1 changed files with 2 additions and 12 deletions
|
@ -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 )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue