Bug 1883418 - Translate icon is should be visible on Private Browsing Mode

fenix/125.0
iorgamgabriel 2 months ago committed by mergify[bot]
parent a04657a0d6
commit e18a08f88a

@ -323,10 +323,9 @@ class BrowserFragment : BaseBrowserFragment(), UserInteractionHandler {
AppCompatResources.getDrawable(
context,
R.drawable.mozac_ic_translate_24,
)!!.apply {
setTint(ContextCompat.getColor(context, R.color.fx_mobile_text_color_primary))
},
),
contentDescription = context.getString(R.string.browser_toolbar_translate),
iconTintColorResource = ThemeManager.resolveAttribute(R.attr.textPrimary, context),
visible = { translationsAvailable },
listener = {
browserToolbarInteractor.onTranslationsButtonClicked()
@ -346,7 +345,7 @@ class BrowserFragment : BaseBrowserFragment(), UserInteractionHandler {
tintColorResource = if (isTranslated) {
R.color.fx_mobile_icon_color_accent_violet
} else {
R.color.fx_mobile_text_color_primary
ThemeManager.resolveAttribute(R.attr.textPrimary, context)
},
contentDescription = if (isTranslated) {
context.getString(

Loading…
Cancel
Save