From 6345eec9d1f2159a9b696e6b4aafa2ef8872d74b Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 9 Mar 2026 23:00:57 +0000 Subject: [PATCH] Fix MainActivity appearing behind bunker notification bottom sheet SignerActivity is a transparent modal bottom sheet. Without its own taskAffinity it was launched inside Amber's existing task (containing MainActivity), making MainActivity visible through the transparent scrim. Add android:taskAffinity="" to SignerActivity in both manifests so it always runs in its own isolated task. Also add FLAG_ACTIVITY_NEW_TASK to the notification PendingIntent to enforce the new-task launch. https://claude.ai/code/session_01XnocJeiPCgdXRq7syUxwpG --- app/src/free/AndroidManifest.xml | 1 + app/src/main/AndroidManifest.xml | 1 + .../com/greenart7c3/nostrsigner/service/NotificationUtils.kt | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/free/AndroidManifest.xml b/app/src/free/AndroidManifest.xml index 5459b629..4d309e9e 100644 --- a/app/src/free/AndroidManifest.xml +++ b/app/src/free/AndroidManifest.xml @@ -39,6 +39,7 @@ diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 06fcc033..9dd5b036 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -71,6 +71,7 @@ diff --git a/app/src/main/java/com/greenart7c3/nostrsigner/service/NotificationUtils.kt b/app/src/main/java/com/greenart7c3/nostrsigner/service/NotificationUtils.kt index bf02c012..fa395332 100644 --- a/app/src/main/java/com/greenart7c3/nostrsigner/service/NotificationUtils.kt +++ b/app/src/main/java/com/greenart7c3/nostrsigner/service/NotificationUtils.kt @@ -151,7 +151,7 @@ object NotificationUtils { val contentIntent = Intent(applicationContext, SignerActivity::class.java) contentIntent.putExtra("route", Route.IncomingRequest.route) - contentIntent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP or Intent.FLAG_ACTIVITY_CLEAR_TOP) + contentIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_SINGLE_TOP or Intent.FLAG_ACTIVITY_CLEAR_TOP) val contentPendingIntent = PendingIntent.getActivity( applicationContext,