Make sure country code is uppercase
getNetworkCountryIso returns a lowercase country code, causing number parse
exceptions when using PhoneNumberUtils.parse to try and format and geocode
an unknown phone number.
Bug: 13971546
Change-Id: I0112df7a6053b8d3fb2d63597977d20a02b33b4b
diff --git a/src/com/android/contacts/common/util/TelephonyManagerUtils.java b/src/com/android/contacts/common/util/TelephonyManagerUtils.java
index d01f599..ce4955c 100644
--- a/src/com/android/contacts/common/util/TelephonyManagerUtils.java
+++ b/src/com/android/contacts/common/util/TelephonyManagerUtils.java
@@ -82,7 +82,7 @@
// we can rely on.
final TelephonyManager telephonyManager =
(TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
- String countryIso = telephonyManager.getNetworkCountryIso();
+ String countryIso = telephonyManager.getNetworkCountryIso().toUpperCase();
if (countryIso == null) {
countryIso = locale.getCountry();