Akram Bensalem
09/23/2021, 8:58 PMAppCompatDelegate.setDefaultNightMode(true)
Because when I use that it's blank and I loose the state of some variables.
But when using just Theme:
val autColors = if (isSystemInDarkTheme()) DarkColorPalette else LightColorPalette
It works great like I want just with one issue is when navigate from screen to another a white flash apears !!!
this happen just with Dark mode.
So anyone here was able to solve this issue ?Tash
09/23/2021, 9:09 PMAkram Bensalem
09/23/2021, 9:23 PMAkram Bensalem
09/23/2021, 9:30 PMAppCompatDelegate.setDefaultNightMode(true)
?