diff --git a/android/java/org/chromium/chrome/browser/vpn/settings/BraveVpnPreferences.java b/android/java/org/chromium/chrome/browser/vpn/settings/BraveVpnPreferences.java index a7827d72af24..ae0fe6e5972b 100644 --- a/android/java/org/chromium/chrome/browser/vpn/settings/BraveVpnPreferences.java +++ b/android/java/org/chromium/chrome/browser/vpn/settings/BraveVpnPreferences.java @@ -311,7 +311,7 @@ public void run() { @Override public void run() { findPreference(PREF_SERVER_CHANGE_LOCATION) - .setEnabled( + .setVisible( BraveVpnPrefUtils .isSubscriptionPurchase()); findPreference(PREF_SPLIT_TUNNELING) diff --git a/android/java/org/chromium/chrome/browser/vpn/settings/VpnRegionPreference.java b/android/java/org/chromium/chrome/browser/vpn/settings/VpnRegionPreference.java index 4b2bfa4eb1f2..88d85e3a5b87 100644 --- a/android/java/org/chromium/chrome/browser/vpn/settings/VpnRegionPreference.java +++ b/android/java/org/chromium/chrome/browser/vpn/settings/VpnRegionPreference.java @@ -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 =