From 122fb0b6c58774c75e06cbf786d0f366b674c163 Mon Sep 17 00:00:00 2001 From: linyuh Date: Mon, 26 Mar 2018 13:35:32 -0700 Subject: Remove obsolete methods in CompatUtils and rename it as "LocaleUtils". Test: Existing tests PiperOrigin-RevId: 190516504 Change-Id: I5fa9e123b45beb9728257ecd160a348fb3f4732c --- java/com/android/dialer/phonenumberutil/PhoneNumberHelper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'java/com/android/dialer/phonenumberutil') 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); -- cgit v1.2.3