For #9698: Use extension to ensure fallback to English and avoid crash
parent
4a1a875233
commit
a214f04b4a
|
@ -18,6 +18,7 @@ import mozilla.components.browser.session.Session
|
|||
import mozilla.components.browser.session.SessionManager
|
||||
import org.mozilla.fenix.R
|
||||
import org.mozilla.fenix.components.toolbar.ToolbarMenu
|
||||
import org.mozilla.fenix.ext.getStringWithArgSafe
|
||||
import org.mozilla.fenix.theme.ThemeManager
|
||||
|
||||
/**
|
||||
|
@ -133,7 +134,7 @@ class CustomTabToolbarMenu(
|
|||
}
|
||||
|
||||
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,
|
||||
textColorResource = primaryTextColor(),
|
||||
textStyle = Typeface.NORMAL
|
||||
|
|
Loading…
Reference in New Issue