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:
Eric House 2014-04-24 19:59:20 -07:00
parent 808e342cd4
commit 6e011ab36f
2 changed files with 7 additions and 1 deletions

View file

@ -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"

View file

@ -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