Suppress uiMode configuration changes.
When the user switches between dark and light themes, Android destroys and recreates the activity. However, Lime activities can't be recreated like this, and just close instead. Since we don't actually use the system theme, there's no reason to do this. Simplest solution is to suppress it. https://developer.android.com/guide/topics/resources/runtime-changes https://developer.android.com/guide/topics/ui/look-and-feel/darktheme#config-changes
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
<meta-data android:name="SDL_ENV.SDL_IOS_ORIENTATIONS" android:value= "LandscapeLeft LandscapeRight" />
|
||||
::end::
|
||||
|
||||
<activity android:name="MainActivity" android:exported="true" 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::>
|
||||
<activity android:name="MainActivity" android:exported="true" android:launchMode="singleTask" android:label="::APP_TITLE::" android:configChanges="keyboardHidden|orientation|screenSize|screenLayout|uiMode"::if (WIN_ORIENTATION=="portrait"):: android:screenOrientation="sensorPortrait"::end::::if (WIN_ORIENTATION=="landscape"):: android:screenOrientation="sensorLandscape"::end::>
|
||||
|
||||
<intent-filter>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user