mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
allow board screen to be "upside down" on OS version new enough to
support it (and make SMS Invite Activity go any way, just like everything else) Conflicts: xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardActivity.java
This commit is contained in:
parent
c576ec7d7d
commit
2f3a7f4bd2
2 changed files with 5 additions and 1 deletions
|
@ -97,7 +97,7 @@
|
|||
<activity android:name="SMSInviteActivity"
|
||||
android:theme="@android:style/Theme.Dialog"
|
||||
android:configChanges="keyboardHidden|orientation|screenSize"
|
||||
android:screenOrientation="portrait"
|
||||
android:screenOrientation="sensor"
|
||||
/>
|
||||
|
||||
<activity android:name="GameConfig"
|
||||
|
|
|
@ -516,6 +516,10 @@ public class BoardActivity extends XWActivity
|
|||
protected void onCreate( Bundle savedInstanceState )
|
||||
{
|
||||
super.onCreate( savedInstanceState );
|
||||
if ( 9 <= Integer.valueOf( android.os.Build.VERSION.SDK ) ) {
|
||||
setRequestedOrientation( ActivityInfo.
|
||||
SCREEN_ORIENTATION_SENSOR_PORTRAIT );
|
||||
}
|
||||
getBundledData( savedInstanceState );
|
||||
|
||||
if ( CommonPrefs.getHideTitleBar( this )
|
||||
|
|
Loading…
Add table
Reference in a new issue