fix for android rotation

This commit is contained in:
m0rkeulv
2020-08-02 15:36:56 +02:00
committed by Joshua Granick
parent f3adce068c
commit bf2b51ce1e

View File

@@ -11,7 +11,13 @@
<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:: />
::if (WIN_ORIENTATION=="portrait")::
<meta-data android:name="SDL_ENV.SDL_IOS_ORIENTATIONS" android:value= "Portrait PortraitUpsideDown" />
::end::
::if (WIN_ORIENTATION=="landscape")::
<meta-data android:name="SDL_ENV.SDL_IOS_ORIENTATIONS" android:value= "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::>