Skip to content

Commit

Permalink
Merge pull request #26178 from brave/resolve_vpn_settings_crash
Browse files Browse the repository at this point in the history
Resolve vpn settings crash
  • Loading branch information
deeppandya authored Oct 24, 2024
2 parents 833b5a6 + 4dfd429 commit 7da094e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ public void run() {
@Override
public void run() {
findPreference(PREF_SERVER_CHANGE_LOCATION)
.setEnabled(
.setVisible(
BraveVpnPrefUtils
.isSubscriptionPurchase());
findPreference(PREF_SPLIT_TUNNELING)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ public void onBindViewHolder(PreferenceViewHolder holder) {
super.onBindViewHolder(holder);

TextView regionFlag = (TextView) holder.findViewById(R.id.region_flag);
regionFlag.setText(BraveVpnUtils.countryCodeToEmoji(BraveVpnPrefUtils.getRegionIsoCode()));
if (!BraveVpnPrefUtils.getRegionIsoCode().isEmpty()) {
regionFlag.setText(
BraveVpnUtils.countryCodeToEmoji(BraveVpnPrefUtils.getRegionIsoCode()));
}

String serverLocationTitle = BraveVpnPrefUtils.getRegionCountry();
String serverLocationSummary =
Expand Down

0 comments on commit 7da094e

Please sign in to comment.