Skip to content

Commit

Permalink
Update server selection option in settings
Browse files Browse the repository at this point in the history
Resolve format issue
  • Loading branch information
deeppandya committed Oct 25, 2024
1 parent f70f697 commit 7980b55
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 7980b55

Please sign in to comment.