Set _isRefreshing to true first
This commit is contained in:
parent
4f4dab9da6
commit
b932917acc
|
@ -73,6 +73,7 @@ class AccountViewModel @Inject constructor(
|
|||
private fun obtainAccount(reload: Boolean = false) {
|
||||
if (_accountData.value == null || reload) {
|
||||
isDataLoading = true
|
||||
_isRefreshing.value = true
|
||||
_accountData.value = Loading()
|
||||
|
||||
viewModelScope.launch {
|
||||
|
|
Loading…
Reference in New Issue