From 14489cb3754b195756ffb5f399553d497ab1a897 Mon Sep 17 00:00:00 2001 From: Fabian Freund Date: Mon, 20 Apr 2026 12:33:10 +0200 Subject: [PATCH] preserving browser task --- .../android/app/src/main/AndroidManifest.xml | 19 ++++++++----------- .../activities/IntentReceiverActivity.kt | 1 + 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/apps/weblibre/android/app/src/main/AndroidManifest.xml b/apps/weblibre/android/app/src/main/AndroidManifest.xml index 862f59df..4eebc3fc 100644 --- a/apps/weblibre/android/app/src/main/AndroidManifest.xml +++ b/apps/weblibre/android/app/src/main/AndroidManifest.xml @@ -108,15 +108,6 @@ - - - - - - - - - @@ -129,8 +120,8 @@ - + + + + + + + diff --git a/packages/flutter_mozilla_components/android/src/main/kotlin/eu/weblibre/flutter_mozilla_components/activities/IntentReceiverActivity.kt b/packages/flutter_mozilla_components/android/src/main/kotlin/eu/weblibre/flutter_mozilla_components/activities/IntentReceiverActivity.kt index 509d463d..dcc2427c 100644 --- a/packages/flutter_mozilla_components/android/src/main/kotlin/eu/weblibre/flutter_mozilla_components/activities/IntentReceiverActivity.kt +++ b/packages/flutter_mozilla_components/android/src/main/kotlin/eu/weblibre/flutter_mozilla_components/activities/IntentReceiverActivity.kt @@ -60,6 +60,7 @@ class IntentReceiverActivity : Activity() { // Strip flags that could interfere with task management intent.flags = intent.flags and Intent.FLAG_ACTIVITY_NEW_TASK.inv() intent.flags = intent.flags and Intent.FLAG_ACTIVITY_CLEAR_TASK.inv() + intent.flags = intent.flags and Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS.inv() if (shouldBlockIntent(intent)) { finish()