1
0
Fork 0

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

master
mcarare 2020-04-06 15:53:24 +03:00 committed by Mihai Adrian
parent 4a1a875233
commit a214f04b4a
1 changed files with 2 additions and 1 deletions

View File

@ -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