Set _isRefreshing to true first

This commit is contained in:
Goooler 2024-04-02 08:17:04 +08:00
parent 4f4dab9da6
commit b932917acc
1 changed files with 1 additions and 0 deletions

View File

@ -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 {