From f94e299f65a5178b373123cb1138b2b7296febea Mon Sep 17 00:00:00 2001 From: Kohei Date: Sat, 21 Feb 2026 20:52:22 +0900 Subject: [PATCH] fix: prevent assistant launch from bringing MainActivity to foreground Add empty taskAffinity to AssistantActivity so it runs in a separate task from the main app, preventing MainActivity from surfacing when AssistantActivity finishes. Co-Authored-By: Claude Opus 4.6 --- android/app/src/main/AndroidManifest.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 139cf661e..835031b0d 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -56,6 +56,7 @@ android:name=".assistant.AssistantActivity" android:exported="true" android:excludeFromRecents="true" + android:taskAffinity="" android:launchMode="singleTask" android:theme="@android:style/Theme.NoDisplay">