Denis
03/15/2021, 2:52 PMbeta02
? My app can switch from light to dark, but not back. And I can't understand what happened with it. It worked before beta02.
https://kotlinlang.slack.com/archives/CJLTWPH7S/p1615651080120600Denis
03/15/2021, 3:41 PMColors
objects are mutable (their fields are `var`s), and looks like my LightColorPalette
singleton gets changed somewhere, but I don't see where. If I copy it before passing to MaterialTheme
it works as expectedLouis Pullen-Freilich [G]
03/15/2021, 3:45 PM.copy()
before you pass it in is a workaroundDenis
03/15/2021, 3:50 PMColors
? wouldn't it be better if it was a completely immutable class?Louis Pullen-Freilich [G]
03/15/2021, 3:52 PM