diff options
author | linyuh <linyuh@google.com> | 2018-03-26 13:35:32 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-03-26 22:25:23 -0700 |
commit | 122fb0b6c58774c75e06cbf786d0f366b674c163 (patch) | |
tree | 669e91ab9e79eb6203f2470beeb778d3f47d32a8 /java/com/android/dialer/phonenumberutil | |
parent | 6e760e384d732717d260f0a15a622486b1f55793 (diff) |
Remove obsolete methods in CompatUtils and rename it as "LocaleUtils".
Test: Existing tests
PiperOrigin-RevId: 190516504
Change-Id: I5fa9e123b45beb9728257ecd160a348fb3f4732c
Diffstat (limited to 'java/com/android/dialer/phonenumberutil')
-rw-r--r-- | java/com/android/dialer/phonenumberutil/PhoneNumberHelper.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/java/com/android/dialer/phonenumberutil/PhoneNumberHelper.java b/java/com/android/dialer/phonenumberutil/PhoneNumberHelper.java index 33a94ea74..df7716cfd 100644 --- a/java/com/android/dialer/phonenumberutil/PhoneNumberHelper.java +++ b/java/com/android/dialer/phonenumberutil/PhoneNumberHelper.java @@ -32,8 +32,8 @@ import android.text.TextDirectionHeuristics; import android.text.TextUtils; import com.android.dialer.common.Assert; import com.android.dialer.common.LogUtil; -import com.android.dialer.compat.CompatUtils; import com.android.dialer.compat.telephony.TelephonyManagerCompat; +import com.android.dialer.i18n.LocaleUtils; import com.android.dialer.oem.MotorolaUtils; import com.android.dialer.oem.PhoneNumberUtilsAccessor; import com.android.dialer.phonenumbergeoutil.PhoneNumberGeoUtilComponent; @@ -249,7 +249,7 @@ public class PhoneNumberHelper { TelephonyManagerCompat.getNetworkCountryIsoForPhoneAccountHandle( context, phoneAccountHandle); if (TextUtils.isEmpty(countryIso)) { - countryIso = CompatUtils.getLocale(context).getCountry(); + countryIso = LocaleUtils.getLocale(context).getCountry(); LogUtil.i( "PhoneNumberHelper.getCurrentCountryIso", "No CountryDetector; falling back to countryIso based on locale: " + countryIso); |