c754edd63b24c8192b7554875f53cc8fceee2103
根因:fetchStatistics(false)和fetchStatistics(checkDots=true) 是两个独立协程竞争,lastStats更新时机不可控。 修复:onViewCreated中用协程顺序执行: 1. 先 await safeApiCall → 设好 lastStats 基准 2. 再 observeEvents 开始监听通知 EventBus buffer=64 暂存期间的通知不丢失 这样当NewTaskArrived触发fetchStatistics(checkDots=true)时, lastStats一定已有值,preNotificationStats也能正确保存。 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Description
小趣手表APP
Languages
Kotlin
100%