Skip to content

Commit d117ab4

Browse files
committed
use original context for view creation
1 parent 75bc8f0 commit d117ab4

File tree

1 file changed

+2
-2
lines changed
  • packages/flutter_mozilla_components/android/src/main/kotlin/eu/weblibre/flutter_mozilla_components

1 file changed

+2
-2
lines changed

packages/flutter_mozilla_components/android/src/main/kotlin/eu/weblibre/flutter_mozilla_components/BrowserFragment.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ import mozilla.components.support.base.feature.UserInteractionHandler
1818
*/
1919
class BrowserFragment() : BaseBrowserFragment(), UserInteractionHandler {
2020
override fun createEngine(components: Components): EngineView {
21-
val profileContext = ProfileContext(requireContext(), components.profileApplicationContext.relativePath)
22-
return components.core.engine.createView(profileContext).apply {
21+
//We cannot introduce here our wrapped context since a activity type is required to make features work correctly like context menu
22+
return components.core.engine.createView(requireContext()).apply {
2323
selectionActionDelegate = components.selectionAction
2424
}
2525
}

0 commit comments

Comments
 (0)