Main forum > GLBasic - en

Android - dark mode / light mode

(1/1)

MrPlow:
Hi

I had a few rejected submissions from the Galaxy Store for issue with app restarting / closing when switching between light and dark mode

This seems to resolve the issue

adding uimode to configchanges in manifest file
under SDLGLbasic activity section


   <activity android:name="SDLGlbasic"

            android:theme="@style/MyTheme"
            android:label="@string/app_name"
            android:screenOrientation="sensor"
            android:minAspectRatio="1.2"
            android:maxAspectRatio="2.4"
            android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode">


For anyone else who is adding Android apps to the Galaxy Store

Kitty Hello:
Added to the github repository.

MrPlow:

--- Quote from: Kitty Hello on 2021-Nov-23 ---Added to the github repository.

--- End quote ---

Thanks Gernot!
 =D

spacefractal:
hey, that one was in a ealier build. but thanks for the notice. we should also let you able what mode its is eventuelly, which should not been that hard.

Navigation

[0] Message Index

Go to full version