fix: HomeFragment 监听 HomeRefresh 事件刷新统计
批量打卡成功后 emit HomeRefresh,但 HomeFragment 之前没有监听该事件, 导致首页统计数字不更新。 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -511,6 +511,11 @@ class HomeFragment : BaseFragment<FragmentHomeBinding>() {
|
||||
fetchStatistics(checkDots = true)
|
||||
setupBannerClick()
|
||||
}
|
||||
// NFC 打卡成功后刷新首页统计
|
||||
is AppEvent.HomeRefresh -> {
|
||||
Timber.d("首页: 收到刷新通知")
|
||||
fetchStatistics()
|
||||
}
|
||||
// MQTT 消息
|
||||
is AppEvent.MqttMessageReceived -> {
|
||||
when (event.type) {
|
||||
|
||||
Reference in New Issue
Block a user