mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-17 18:12:01 +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)
This commit is contained in:
parent
808e342cd4
commit
6e011ab36f
2 changed files with 7 additions and 1 deletions
|
@ -97,7 +97,7 @@
|
||||||
<activity android:name="SMSInviteActivity"
|
<activity android:name="SMSInviteActivity"
|
||||||
android:theme="@android:style/Theme.Dialog"
|
android:theme="@android:style/Theme.Dialog"
|
||||||
android:configChanges="keyboardHidden|orientation|screenSize"
|
android:configChanges="keyboardHidden|orientation|screenSize"
|
||||||
android:screenOrientation="portrait"
|
android:screenOrientation="sensor"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<activity android:name="GameConfig"
|
<activity android:name="GameConfig"
|
||||||
|
|
|
@ -55,6 +55,12 @@ public class BoardActivity extends Activity {
|
||||||
protected void onCreate( Bundle savedInstanceState )
|
protected void onCreate( Bundle savedInstanceState )
|
||||||
{
|
{
|
||||||
super.onCreate( savedInstanceState );
|
super.onCreate( savedInstanceState );
|
||||||
|
|
||||||
|
if ( 9 <= Integer.valueOf( android.os.Build.VERSION.SDK ) ) {
|
||||||
|
setRequestedOrientation( ActivityInfo.
|
||||||
|
SCREEN_ORIENTATION_SENSOR_PORTRAIT );
|
||||||
|
}
|
||||||
|
|
||||||
m_dlgt = new BoardDelegate( this, savedInstanceState );
|
m_dlgt = new BoardDelegate( this, savedInstanceState );
|
||||||
} // onCreate
|
} // onCreate
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue