Skip to content

Commit

Permalink
Uplift of #26238 (squashed) to beta
Browse files Browse the repository at this point in the history
  • Loading branch information
brave-builds committed Oct 25, 2024
1 parent c446320 commit 7d117b8
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,15 @@ public void onBindViewHolder(PreferenceViewHolder holder) {
}

String serverLocationTitle = BraveVpnPrefUtils.getRegionCountry();
String optimalString = "%s - %s";
String serverLocationSummary =
BraveVpnPrefUtils.getRegionPrecision()
.equals(BraveVpnConstants.REGION_PRECISION_COUNTRY)
? mContext.getString(R.string.optimal_text)
: BraveVpnPrefUtils.getRegionNamePretty();
? String.format(
optimalString,
mContext.getString(R.string.optimal_text),
BraveVpnPrefUtils.getHostnameDisplay())
: BraveVpnPrefUtils.getHostnameDisplay();

TextView regionTitle = (TextView) holder.findViewById(R.id.region_title);
regionTitle.setText(serverLocationTitle);
Expand Down

0 comments on commit 7d117b8

Please sign in to comment.