2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-03 23:15:31 +00:00

For #9698: Use extension to ensure fallback to English and avoid crash

This commit is contained in:
mcarare 2020-04-06 15:53:24 +03:00 committed by Mihai Adrian
parent 4a1a875233
commit a214f04b4a

View File

@ -18,6 +18,7 @@ import mozilla.components.browser.session.Session
import mozilla.components.browser.session.SessionManager import mozilla.components.browser.session.SessionManager
import org.mozilla.fenix.R import org.mozilla.fenix.R
import org.mozilla.fenix.components.toolbar.ToolbarMenu import org.mozilla.fenix.components.toolbar.ToolbarMenu
import org.mozilla.fenix.ext.getStringWithArgSafe
import org.mozilla.fenix.theme.ThemeManager import org.mozilla.fenix.theme.ThemeManager
/** /**
@ -133,7 +134,7 @@ class CustomTabToolbarMenu(
} }
private val poweredBy = BrowserMenuCategory( private val poweredBy = BrowserMenuCategory(
label = context.getString(R.string.browser_menu_powered_by, appName).toUpperCase(), label = context.getStringWithArgSafe(R.string.browser_menu_powered_by, appName).toUpperCase(),
textSize = CAPTION_TEXT_SIZE, textSize = CAPTION_TEXT_SIZE,
textColorResource = primaryTextColor(), textColorResource = primaryTextColor(),
textStyle = Typeface.NORMAL textStyle = Typeface.NORMAL