chore: 代码清理(debug日志+孤立文件+未用字段+测试修复)
1. 去掉 fetchStatistics/renderDots 中的 debug Timber.d 2. 删除孤立文件: bg_new_task_hint.xml, bg_btn_primary.xml, bg_btn_secondary.xml 3. 删除未用字段: onPendingCountChanged 4. 单元测试修复: - 添加 Dispatchers.setMain/resetMain (JVM无Main线程) - 新增: 数字id解析、acknowledgeCard减pendingCount、ack清除、preNotificationStats - 总计 22 条测试 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -71,9 +71,6 @@ class NotificationManager @Inject constructor(
|
||||
/** 协程作用域 */
|
||||
private val scope = CoroutineScope(Dispatchers.Main + SupervisorJob())
|
||||
|
||||
/** 去抖合并后的回调(通知 UI 更新横幅数字) */
|
||||
var onPendingCountChanged: ((Int) -> Unit)? = null
|
||||
|
||||
/**
|
||||
* 处理 MQTT type=1 新任务消息
|
||||
* 去抖策略:1s 窗口内的消息暂存,窗口结束后合并处理(不丢弃)
|
||||
|
||||
Reference in New Issue
Block a user