Loading telephony/java/android/telephony/PhoneNumberUtils.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -1805,7 +1805,7 @@ public class PhoneNumberUtils String countryIso; String countryIso; CountryDetector detector = (CountryDetector) context.getSystemService( CountryDetector detector = (CountryDetector) context.getSystemService( Context.COUNTRY_DETECTOR); Context.COUNTRY_DETECTOR); if (detector != null) { if (detector != null && detector.detectCountry() != null) { countryIso = detector.detectCountry().getCountryIso(); countryIso = detector.detectCountry().getCountryIso(); } else { } else { Locale locale = context.getResources().getConfiguration().locale; Locale locale = context.getResources().getConfiguration().locale; Loading Loading
telephony/java/android/telephony/PhoneNumberUtils.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -1805,7 +1805,7 @@ public class PhoneNumberUtils String countryIso; String countryIso; CountryDetector detector = (CountryDetector) context.getSystemService( CountryDetector detector = (CountryDetector) context.getSystemService( Context.COUNTRY_DETECTOR); Context.COUNTRY_DETECTOR); if (detector != null) { if (detector != null && detector.detectCountry() != null) { countryIso = detector.detectCountry().getCountryIso(); countryIso = detector.detectCountry().getCountryIso(); } else { } else { Locale locale = context.getResources().getConfiguration().locale; Locale locale = context.getResources().getConfiguration().locale; Loading