GLBasic forum

Main forum => GLBasic - en => Topic started by: MrPlow on 2021-Nov-22

Title: Android - dark mode / light mode
Post by: MrPlow on 2021-Nov-22
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

Title: Re: Android - dark mode / light mode
Post by: Kitty Hello on 2021-Nov-23
Added to the github repository.
Title: Re: Android - dark mode / light mode
Post by: MrPlow on 2021-Nov-23
Quote from: Kitty Hello on 2021-Nov-23
Added to the github repository.

Thanks Gernot!
=D
Title: Re: Android - dark mode / light mode
Post by: spacefractal on 2021-Nov-28
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.