初始时 读取
This commit is contained in:
parent
a063466f15
commit
97f9a39e95
|
|
@ -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())
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue