Skip to content

Commit d7e3888

Browse files
mimi89999mcarare
authored andcommitted
Bug 1970209 - Enable domain highlighting in Focus toolbar. r=android-reviewers,mcarare
Differential Revision: https://phabricator.services.mozilla.com/D252491
1 parent bf564cb commit d7e3888

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

mobile/android/focus-android/app/src/main/java/org/mozilla/focus/browser/integration/BrowserToolbarIntegration.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ import mozilla.components.feature.session.SessionUseCases
3434
import mozilla.components.feature.tabs.CustomTabsUseCases
3535
import mozilla.components.feature.tabs.toolbar.TabCounterToolbarButton
3636
import mozilla.components.feature.toolbar.ToolbarBehaviorController
37+
import mozilla.components.feature.toolbar.ToolbarFeature
3738
import mozilla.components.feature.toolbar.ToolbarPresenter
3839
import mozilla.components.lib.state.ext.flowScoped
3940
import mozilla.components.support.base.feature.LifecycleAwareFeature
@@ -73,6 +74,12 @@ class BrowserToolbarIntegration(
7374
toolbar,
7475
store,
7576
customTabId,
77+
urlRenderConfiguration = ToolbarFeature.UrlRenderConfiguration(
78+
toolbar.context.components.publicSuffixList,
79+
ContextCompat.getColor(toolbar.context, R.color.primaryText),
80+
ContextCompat.getColor(toolbar.context, R.color.secondaryText),
81+
ToolbarFeature.RenderStyle.ColoredUrl,
82+
),
7683
)
7784

7885
@VisibleForTesting

0 commit comments

Comments
 (0)