From 72f07f18f408d88e5be97055d9ef750791e197f7 Mon Sep 17 00:00:00 2001 From: dongliang Date: Thu, 7 May 2026 20:23:51 +0930 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8D=95=E4=B8=AA=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E9=80=9A=E7=9F=A5=E4=B9=9F=E8=B7=B3=E8=BD=AC=E5=88=B0=E7=BB=9F?= =?UTF-8?q?=E4=B8=80=E7=9A=84=E4=BB=BB=E5=8A=A1=E5=88=97=E8=A1=A8=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 之前1个任务跳 TaskDetail,多个跳 TaskList,体验不一致 统一都跳 TaskListFragment(单任务时就是全屏展示一个) Co-Authored-By: Claude Opus 4.6 (1M context) --- .../java/com/xiaoqu/watch/ui/home/HomeFragment.kt | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) 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()