Skip to content

Commit

Permalink
Resolve vpn settings crash
Browse files Browse the repository at this point in the history
Resolve format error
  • Loading branch information
deeppandya committed Oct 24, 2024
1 parent 833b5a6 commit 4dfd429
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 4dfd429

Please sign in to comment.