[fenix] ToolbarIntegration: Use global public suffix list instance.

pull/600/head
Sebastian Kaspari 4 years ago committed by Mihai Adrian Carare
parent 77c9f23ef8
commit 0e4e2623bb

@ -21,7 +21,6 @@ import mozilla.components.feature.tabs.toolbar.TabCounterToolbarButton
import mozilla.components.feature.toolbar.ToolbarAutocompleteFeature import mozilla.components.feature.toolbar.ToolbarAutocompleteFeature
import mozilla.components.feature.toolbar.ToolbarFeature import mozilla.components.feature.toolbar.ToolbarFeature
import mozilla.components.feature.toolbar.ToolbarPresenter import mozilla.components.feature.toolbar.ToolbarPresenter
import mozilla.components.lib.publicsuffixlist.PublicSuffixList
import mozilla.components.support.base.feature.LifecycleAwareFeature import mozilla.components.support.base.feature.LifecycleAwareFeature
import mozilla.components.support.ktx.android.view.hideKeyboard import mozilla.components.support.ktx.android.view.hideKeyboard
import org.mozilla.fenix.R import org.mozilla.fenix.R
@ -45,7 +44,7 @@ abstract class ToolbarIntegration(
store, store,
sessionId, sessionId,
ToolbarFeature.UrlRenderConfiguration( ToolbarFeature.UrlRenderConfiguration(
PublicSuffixList(context), context.components.publicSuffixList,
ThemeManager.resolveAttribute(R.attr.primaryText, context), ThemeManager.resolveAttribute(R.attr.primaryText, context),
renderStyle = renderStyle renderStyle = renderStyle
) )

Loading…
Cancel
Save