初始时 读取

This commit is contained in:
renhaoting 2025-12-01 18:21:29 +08:00
parent a063466f15
commit 97f9a39e95
1 changed files with 1 additions and 6 deletions

View File

@ -132,6 +132,7 @@ class TasksFragment : AppViewsFragment<ViewBinding, UiState, ViewModel>(), OnTab
updateUIGoldTotal() updateUIGoldTotal()
updateUICashTotal() updateUICashTotal()
updateDailyWatchUI()
} }
lifecycleScope.launch { lifecycleScope.launch {
@ -176,12 +177,6 @@ class TasksFragment : AppViewsFragment<ViewBinding, UiState, ViewModel>(), OnTab
} }
private fun updateDailyWatchUI() { private fun updateDailyWatchUI() {
/*binding?.tvCashTotal?.text = buildString {
append(ResUtil.getString(R.string.cash))
append(" ")
append(AccountManager.getCash())
}*/
val statusBean = TaskManager.instance().dailyWatchStatus().getStatus() val statusBean = TaskManager.instance().dailyWatchStatus().getStatus()
mDailyWatchVideoTaskViewList.forEachIndexed { index, view -> mDailyWatchVideoTaskViewList.forEachIndexed { index, view ->
view.updateProgress(statusBean.getTodayWatchedCount()) view.updateProgress(statusBean.getTodayWatchedCount())