mirror of
https://github.com/jellyfin/jellyfin-android.git
synced 2026-10-22 07:41:58 +02:00
Fix a rare crash when starting the app
This commit is contained in:
committed by
Niels van Velzen
parent
c48e537e5e
commit
0de4cbd9f9
@@ -82,7 +82,7 @@ class MainActivity : AppCompatActivity() {
|
||||
}
|
||||
|
||||
// Load UI
|
||||
lifecycleScope.launch {
|
||||
lifecycleScope.launchWhenStarted {
|
||||
mainViewModel.serverState.collect { state ->
|
||||
with(supportFragmentManager) {
|
||||
when (state) {
|
||||
|
||||
Reference in New Issue
Block a user