diff --git a/app/src/main/java/com/xiaoqu/watch/ui/home/HomeFragment.kt b/app/src/main/java/com/xiaoqu/watch/ui/home/HomeFragment.kt index f085e50..b9bf1a2 100644 --- a/app/src/main/java/com/xiaoqu/watch/ui/home/HomeFragment.kt +++ b/app/src/main/java/com/xiaoqu/watch/ui/home/HomeFragment.kt @@ -705,16 +705,11 @@ class HomeFragment : BaseFragment() { val allIds = notificationManager.pendingTaskIds if (allIds.isEmpty()) return - if (allIds.size == 1) { - val taskId = allIds.first().toLongOrNull() ?: 0L - val bundle = bundleOf("taskId" to taskId) - findNavController().navigate(R.id.action_home_to_taskDetail, bundle) - } else { - val bundle = bundleOf( - "taskIds" to allIds.mapNotNull { it.toLongOrNull() }.toLongArray() - ) - findNavController().navigate(R.id.action_home_to_taskList, bundle) - } + // 统一跳转到任务列表页(单个/多个都走同一页面) + val bundle = bundleOf( + "taskIds" to allIds.mapNotNull { it.toLongOrNull() }.toLongArray() + ) + findNavController().navigate(R.id.action_home_to_taskList, bundle) // 清除所有提示(场景3:点横幅查看全部) activeDotCards.clear()