mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-19 09:25:34 +00:00
[fenix] A-C breaking change: FindInPageIntegration needs an engineView
This commit is contained in:
parent
5d0b76a557
commit
436e154999
@ -163,7 +163,9 @@ class BrowserFragment : Fragment(), BackHandler {
|
||||
view = view)
|
||||
|
||||
findInPageIntegration.set(
|
||||
feature = FindInPageIntegration(requireComponents.core.sessionManager, view.findInPageView),
|
||||
feature = FindInPageIntegration(
|
||||
requireComponents.core.sessionManager, view.findInPageView, view.engineView
|
||||
),
|
||||
owner = this,
|
||||
view = view)
|
||||
|
||||
|
@ -10,6 +10,7 @@ import android.view.View
|
||||
import androidx.coordinatorlayout.widget.CoordinatorLayout
|
||||
import mozilla.components.browser.session.SessionManager
|
||||
import mozilla.components.browser.toolbar.BrowserToolbar
|
||||
import mozilla.components.concept.engine.EngineView
|
||||
import mozilla.components.feature.findinpage.FindInPageFeature
|
||||
import mozilla.components.feature.findinpage.view.FindInPageBar
|
||||
import mozilla.components.feature.findinpage.view.FindInPageView
|
||||
@ -18,9 +19,10 @@ import mozilla.components.support.base.feature.LifecycleAwareFeature
|
||||
|
||||
class FindInPageIntegration(
|
||||
private val sessionManager: SessionManager,
|
||||
private val view: FindInPageView
|
||||
private val view: FindInPageView,
|
||||
engineView: EngineView
|
||||
) : LifecycleAwareFeature, BackHandler {
|
||||
private val feature = FindInPageFeature(sessionManager, view, ::onClose)
|
||||
private val feature = FindInPageFeature(sessionManager, view, engineView, ::onClose)
|
||||
|
||||
override fun start() {
|
||||
feature.start()
|
||||
|
Loading…
Reference in New Issue
Block a user