From 37d29854313ca0a7807ac4fd5d10d154b79ee2eb Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Tue, 19 Nov 2013 14:11:24 -0800 Subject: Remove private references to isUriNumber and getUsernameFromUriNumber These methods in PhoneNumberUtils are pretty specific, so don't make them public APIs. Instead, use the methods already in PhoneNumberhelper. Bug: 6948882 Change-Id: I487593543eba526c64588d9a3e70b19b4ed941ab --- src/com/android/dialer/PhoneCallDetailsHelper.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/com/android/dialer/PhoneCallDetailsHelper.java') diff --git a/src/com/android/dialer/PhoneCallDetailsHelper.java b/src/com/android/dialer/PhoneCallDetailsHelper.java index 8e6c943a4..af0a5257e 100644 --- a/src/com/android/dialer/PhoneCallDetailsHelper.java +++ b/src/com/android/dialer/PhoneCallDetailsHelper.java @@ -31,6 +31,7 @@ import android.view.View; import android.widget.TextView; import com.android.contacts.common.test.NeededForTesting; +import com.android.contacts.common.util.PhoneNumberHelper; import com.android.dialer.calllog.CallTypeHelper; import com.android.dialer.calllog.ContactInfo; import com.android.dialer.calllog.PhoneNumberDisplayHelper; @@ -102,7 +103,7 @@ public class PhoneCallDetailsHelper { CharSequence numberFormattedLabel = null; // Only show a label if the number is shown and it is not a SIP address. if (!TextUtils.isEmpty(details.number) - && !PhoneNumberUtils.isUriNumber(details.number.toString())) { + && !PhoneNumberHelper.isUriNumber(details.number.toString())) { if (details.numberLabel == ContactInfo.GEOCODE_AS_LABEL) { numberFormattedLabel = details.geocode; } else { -- cgit v1.2.3