alaershov
01/13/2025, 12:39 PMisSystemInDarkTheme()?
I have set android:configChanges="uiMode|screenSize|smallestScreenSize|orientation|screenLayout" 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?alaershov
01/13/2025, 12:57 PMattachBaseContext in the Application class!Frank Bouwens
01/13/2025, 1:04 PM