Skip to content

Commit

Permalink
For mozilla-mobile#7467: Add explicit US locale for version in about …
Browse files Browse the repository at this point in the history
…screen.
  • Loading branch information
mcarare authored and mergify[bot] committed Sep 6, 2022
1 parent 29ab962 commit 2407357
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import org.mozilla.focus.locale.Locales
import org.mozilla.focus.utils.HtmlLoader
import org.mozilla.focus.utils.SupportUtils.manifestoURL
import org.mozilla.geckoview.BuildConfig
import java.util.Locale

object LocalizedContent {
// We can't use "about:" because webview silently swallows about: pages, hence we use
Expand All @@ -36,6 +37,7 @@ object LocalizedContent {
val packageInfo = context.packageManager.getPackageInfo(context.packageName, 0)
@Suppress("DEPRECATION")
aboutVersion = String.format(
Locale.US,
"%s (Build #%s)",
packageInfo.versionName,
packageInfo.versionCode.toString() + engineIndicator,
Expand Down

0 comments on commit 2407357

Please sign in to comment.