Fixes the problem of not refreshing automatically

This commit is contained in:
ShirkNeko
2025-05-31 20:59:47 +08:00
parent 1cd96fbdbf
commit 6ee9246650

View File

@@ -131,7 +131,6 @@ class MainActivity : ComponentActivity() {
// 预加载数据
lifecycleScope.launch {
homeViewModel.initializeData()
homeViewModel.isRefreshing
}
val prefs = getSharedPreferences("settings", MODE_PRIVATE)
@@ -193,6 +192,8 @@ class MainActivity : ComponentActivity() {
initPlatform()
}
homeViewModel.refreshAllData(this)
Scaffold(
bottomBar = {
AnimatedVisibility(