fix for android screen orientation

This commit is contained in:
m0rkeulv
2020-08-02 14:52:35 +02:00
committed by Joshua Granick
parent b0fa2f952f
commit f3adce068c

View File

@@ -11,6 +11,8 @@
<application android:label="::APP_TITLE::" ::if (HAS_ICON):: android:icon="@drawable/icon"::end:: android:allowBackup="true" android:theme="@android:style/Theme.NoTitleBar::if (WIN_FULLSCREEN)::.Fullscreen::end::" android:hardwareAccelerated="true">
<meta-data android:name="SDL_ENV.SDL_IOS_ORIENTATIONS" android:value= ::if (WIN_ORIENTATION=="portrait"):: "Portrait PortraitUpsideDown" ::end::::if (WIN_ORIENTATION=="landscape"):: "LandscapeLeft LandscapeRight" ::end:: />
<activity android:name="MainActivity" android:launchMode="singleTask" android:label="::APP_TITLE::" android:configChanges="keyboardHidden|orientation|screenSize|screenLayout"::if (WIN_ORIENTATION=="portrait"):: android:screenOrientation="sensorPortrait"::end::::if (WIN_ORIENTATION=="landscape"):: android:screenOrientation="sensorLandscape"::end::>
<intent-filter>