Fix a rare crash when starting the app

This commit is contained in:
Maxr1998 authored and Niels van Velzen committed 2021-08-01 10:33:24 +02:00
1 parent c48e537e5e
commit 0de4cbd9f9
1 file changed
+1 -1
@@ -82,7 +82,7 @@ class MainActivity : AppCompatActivity() {
}
// Load UI
lifecycleScope.launch {
lifecycleScope.launchWhenStarted {
mainViewModel.serverState.collect { state ->
with(supportFragmentManager) {
when (state) {