Fixes the problem of not refreshing automatically
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user