mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
404568ed8f
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.