From d117ab4356fd7540d6714cdcfa5409cfb7016edb Mon Sep 17 00:00:00 2001 From: Fabian Freund Date: Sat, 29 Nov 2025 07:34:48 +0100 Subject: [PATCH] use original context for view creation --- .../eu/weblibre/flutter_mozilla_components/BrowserFragment.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/flutter_mozilla_components/android/src/main/kotlin/eu/weblibre/flutter_mozilla_components/BrowserFragment.kt b/packages/flutter_mozilla_components/android/src/main/kotlin/eu/weblibre/flutter_mozilla_components/BrowserFragment.kt index 7a619ab6..f47aad92 100644 --- a/packages/flutter_mozilla_components/android/src/main/kotlin/eu/weblibre/flutter_mozilla_components/BrowserFragment.kt +++ b/packages/flutter_mozilla_components/android/src/main/kotlin/eu/weblibre/flutter_mozilla_components/BrowserFragment.kt @@ -18,8 +18,8 @@ import mozilla.components.support.base.feature.UserInteractionHandler */ class BrowserFragment() : BaseBrowserFragment(), UserInteractionHandler { override fun createEngine(components: Components): EngineView { - val profileContext = ProfileContext(requireContext(), components.profileApplicationContext.relativePath) - return components.core.engine.createView(profileContext).apply { + //We cannot introduce here our wrapped context since a activity type is required to make features work correctly like context menu + return components.core.engine.createView(requireContext()).apply { selectionActionDelegate = components.selectionAction } }