2
0
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:
Grisha Kruglov 2019-03-21 11:26:02 -07:00 committed by Colin Lee
parent 5d0b76a557
commit 436e154999
2 changed files with 7 additions and 3 deletions

View File

@ -163,7 +163,9 @@ class BrowserFragment : Fragment(), BackHandler {
view = view) view = view)
findInPageIntegration.set( findInPageIntegration.set(
feature = FindInPageIntegration(requireComponents.core.sessionManager, view.findInPageView), feature = FindInPageIntegration(
requireComponents.core.sessionManager, view.findInPageView, view.engineView
),
owner = this, owner = this,
view = view) view = view)

View File

@ -10,6 +10,7 @@ import android.view.View
import androidx.coordinatorlayout.widget.CoordinatorLayout import androidx.coordinatorlayout.widget.CoordinatorLayout
import mozilla.components.browser.session.SessionManager import mozilla.components.browser.session.SessionManager
import mozilla.components.browser.toolbar.BrowserToolbar import mozilla.components.browser.toolbar.BrowserToolbar
import mozilla.components.concept.engine.EngineView
import mozilla.components.feature.findinpage.FindInPageFeature import mozilla.components.feature.findinpage.FindInPageFeature
import mozilla.components.feature.findinpage.view.FindInPageBar import mozilla.components.feature.findinpage.view.FindInPageBar
import mozilla.components.feature.findinpage.view.FindInPageView import mozilla.components.feature.findinpage.view.FindInPageView
@ -18,9 +19,10 @@ import mozilla.components.support.base.feature.LifecycleAwareFeature
class FindInPageIntegration( class FindInPageIntegration(
private val sessionManager: SessionManager, private val sessionManager: SessionManager,
private val view: FindInPageView private val view: FindInPageView,
engineView: EngineView
) : LifecycleAwareFeature, BackHandler { ) : LifecycleAwareFeature, BackHandler {
private val feature = FindInPageFeature(sessionManager, view, ::onClose) private val feature = FindInPageFeature(sessionManager, view, engineView, ::onClose)
override fun start() { override fun start() {
feature.start() feature.start()