Open JimClermonts opened 4 years ago
When adding a print statement in MainActivity's onCreate it appears that MainActivity and LauncherActivity are being created twice.
When uncommenting this line in MainActivity:
mainViewModel.theme.observe(this, Observer(::updateForTheme)) the problem is solved.
mainViewModel.theme.observe(this, Observer(::updateForTheme))
When adding a print statement in MainActivity's onCreate it appears that MainActivity and LauncherActivity are being created twice.
When uncommenting this line in MainActivity:
mainViewModel.theme.observe(this, Observer(::updateForTheme))
the problem is solved.