to avoid recreating my Single Activity when the theme or screen orientation changes.
I expect the value of
isSystemInDarkTheme()
or
LocalConfiguration.current.uiMode
to change as soon as I change the theme in Android System Settings. However, this is not the case, and I need to re-launch the app to detect system theme change.
What am I missing? And how to actually observe system theme changes in Compose?