Files
arcanechat-android/src/main/java
copilot-swe-agent[bot] 404568ed8f fix: use single-intent shortcut so FLAG_ACTIVITY_NEW_DOCUMENT task matching works
FLAG_ACTIVITY_NEW_DOCUMENT document-task matching (same URI → reuse
existing task) only works with single-intent startActivity(). When
ShortcutInfoCompat.setIntents() passes a multi-intent array, Android
internally calls startActivities(), which does not honour the document-
task model: different shortcuts end up sharing a task, and opening the
same app from chat and from a shortcut creates duplicate tasks.

Fix: replace setIntents(getWebxdcIntentWithParentStack()) with
setIntent(getWebxdcIntent()) so the shortcut fires the exact same
single intent as a direct open. The now-unused
getWebxdcIntentWithParentStack helper and TaskStackBuilder import
are removed.
2026-06-09 22:54:12 +00:00
..
2026-05-29 02:15:06 +02:00