mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 09:49:30 +01:00
Return optional for telephone number region name for the unknown case to be localized.
This commit is contained in:
@@ -29,7 +29,7 @@ public final class CountryListLoader extends AsyncTaskLoader<ArrayList<Map<Strin
|
||||
|
||||
for (String region : regions) {
|
||||
Map<String, String> data = new HashMap<>(2);
|
||||
data.put("country_name", PhoneNumberFormatter.getRegionDisplayName(region));
|
||||
data.put("country_name", PhoneNumberFormatter.getRegionDisplayNameLegacy(region));
|
||||
data.put("country_code", "+" +PhoneNumberUtil.getInstance().getCountryCodeForRegion(region));
|
||||
results.add(data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user