refresh on start

This commit is contained in:
Minecon724 2024-08-01 14:26:21 +02:00
parent bdd6fefed1
commit 1d24005e5e
Signed by: Minecon724
GPG key ID: 3CCC4D267742C8E8

View file

@ -55,6 +55,7 @@ class DashboardActivity : ComponentActivity() {
val dashboardViewModel = DashboardViewModel(user, vastApi)
lifecycleScope.launch {
dashboardViewModel.refresh()
repeatOnLifecycle(Lifecycle.State.STARTED) {
dashboardViewModel.refreshError.collect {
it.forEach { errorMsg ->