fix: 通知累积+点击跳转修复
Bug 1: setupBannerClick每次事件覆盖onClick,丢失之前累积的taskIds
修复: 点击时从notificationManager.pendingTaskIds取所有累积ID
Bug 2: 多任务点击跳到接单池全量列表,无法区分新旧
修复: TaskListFragment支持taskIds参数过滤,只显示通知中的任务
Bug 3: allIds.toLongArray()编译错误(List<String>无此方法)
修复: mapNotNull{toLongOrNull()}.toLongArray()
nav_main.xml: taskListFragment新增taskIds可选参数(long[]nullable)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -43,12 +43,13 @@
|
||||
app:popUpTo="@id/bindFragment" app:popUpToInclusive="true" />
|
||||
</fragment>
|
||||
|
||||
<!-- 任务列表(接收 tableStatus 参数) -->
|
||||
<!-- 任务列表(接收 tableStatus 参数,可选 taskIds 过滤) -->
|
||||
<fragment
|
||||
android:id="@+id/taskListFragment"
|
||||
android:name="com.xiaoqu.watch.ui.task.TaskListFragment"
|
||||
android:label="任务列表">
|
||||
<argument android:name="tableStatus" android:defaultValue="2" app:argType="integer" />
|
||||
<argument android:name="taskIds" android:defaultValue="@null" app:argType="long[]" app:nullable="true" />
|
||||
<!-- 任务列表 → 任务详情 -->
|
||||
<action android:id="@+id/action_taskList_to_detail"
|
||||
app:destination="@id/taskDetailFragment" />
|
||||
|
||||
Reference in New Issue
Block a user