From 1d24005e5e2f7f984ce25a9b827ced1c291d9ab1 Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Thu, 1 Aug 2024 14:26:21 +0200 Subject: [PATCH] refresh on start --- .../java/eu/m724/vastapp/activity/dashboard/DashboardActivity.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/eu/m724/vastapp/activity/dashboard/DashboardActivity.kt b/app/src/main/java/eu/m724/vastapp/activity/dashboard/DashboardActivity.kt index 23b48eb..8fa596f 100644 --- a/app/src/main/java/eu/m724/vastapp/activity/dashboard/DashboardActivity.kt +++ b/app/src/main/java/eu/m724/vastapp/activity/dashboard/DashboardActivity.kt @@ -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 ->