Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dark Mode Causes Android App Refresh #11

Open
harrisKAsher opened this issue Apr 5, 2021 · 2 comments
Open

Dark Mode Causes Android App Refresh #11

harrisKAsher opened this issue Apr 5, 2021 · 2 comments

Comments

@harrisKAsher
Copy link

When changing from light to dark or dark to light modes the app completely reloads instead of just changing the theme. (It does load with the proper theme.)

I am only using this on Android so cannot confirm if this is a problem on other platforms. I have also only been able to test this on a Google Pixel 3a and Google Pixel 4XL.

@doublechecker
Copy link
Contributor

This does not happen on iOS. I have the same on Android but i have the feeling that its just how it works on android. When i change the dark-mode setting in the Android settings app and come back to my app, i don't really care if its "restarting" the app as it happens for other reasons anyways.

@dewald-els
Copy link

Changes in the configurations causes an Android Activity to reload. Please refer to the documentation here. This might be the reason that it reloads the app since it's probably reloading the MainActivity. I might be wrong about this. I am not an expert Android developer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants