kopia lustrzana https://github.com/vitorpamplona/amethyst
Avoids bug on creating the live set in the IO thread.
rodzic
b021920eaa
commit
35c780f81b
|
@ -109,6 +109,10 @@ class AccountStateViewModel() : ViewModel() {
|
|||
}
|
||||
|
||||
viewModelScope.launch(Dispatchers.IO) {
|
||||
withContext(Dispatchers.Main) {
|
||||
// Prepares livedata objects on the main user.
|
||||
account.userProfile().live()
|
||||
}
|
||||
serviceManager?.restartIfDifferentAccount(account)
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue