use original context for view creation
This commit is contained in:
+2
-2
@@ -18,8 +18,8 @@ import mozilla.components.support.base.feature.UserInteractionHandler
|
|||||||
*/
|
*/
|
||||||
class BrowserFragment() : BaseBrowserFragment(), UserInteractionHandler {
|
class BrowserFragment() : BaseBrowserFragment(), UserInteractionHandler {
|
||||||
override fun createEngine(components: Components): EngineView {
|
override fun createEngine(components: Components): EngineView {
|
||||||
val profileContext = ProfileContext(requireContext(), components.profileApplicationContext.relativePath)
|
//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(profileContext).apply {
|
return components.core.engine.createView(requireContext()).apply {
|
||||||
selectionActionDelegate = components.selectionAction
|
selectionActionDelegate = components.selectionAction
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user