From 2ee599badb913f8aaf1e6c90d09800b57c56c896 Mon Sep 17 00:00:00 2001 From: zechs Date: Wed, 14 Jun 2023 15:35:14 +0530 Subject: [PATCH] fix: check login status before loading is finished --- app/src/main/java/zechs/drive/stream/ui/main/MainViewModel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/zechs/drive/stream/ui/main/MainViewModel.kt b/app/src/main/java/zechs/drive/stream/ui/main/MainViewModel.kt index f4305c2..27385b5 100755 --- a/app/src/main/java/zechs/drive/stream/ui/main/MainViewModel.kt +++ b/app/src/main/java/zechs/drive/stream/ui/main/MainViewModel.kt @@ -46,9 +46,9 @@ class MainViewModel @Inject constructor( viewModelScope.launch { getTheme() val status = getLoginStatus() + _hasLoggedIn.value = status delay(250L) _isLoading.value = false - _hasLoggedIn.value = status } getLatestRelease() // check for update }