julioromano
07/27/2021, 1:59 PMisSystemInDarkTheme()
always returned true
.
I have tested on an API28 emulator and can’t reproduce: the composables are always rendered in light mode (as they are supposed to).
Has anyone encountered a similar situation?cb
07/27/2021, 2:24 PMUiModeManager.setNightMode()
. That API was a global toggle up until API 29 so is likely to be the reasoncb
07/27/2021, 2:27 PMval mgr = getSystemService(Context.UI_MODE_SERVICE) as UiModeManager
mgr.nightMode = UiModeManager.MODE_NIGHT_NO
nitrog42
07/27/2021, 2:37 PM