Tor settings: Address review comments

This commit is contained in:
Torsten Grote
2018-08-16 12:27:26 -03:00
parent 9b17836595
commit 4b9a9771f8
3 changed files with 3 additions and 5 deletions

View File

@@ -314,7 +314,7 @@ public class SettingsFragment extends PreferenceFragmentCompat
// Look up country name in the user's chosen language if available
String country = locationUtils.getCurrentCountry();
String countryName = getString(R.string.tor_network_country_unknown);
String countryName = country;
for (Locale locale : Locale.getAvailableLocales()) {
if (locale.getCountry().equalsIgnoreCase(country)) {
countryName = locale.getDisplayCountry();