diff options
author | Yorke Lee <yorkelee@google.com> | 2014-03-17 13:04:45 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2014-03-17 13:04:45 -0700 |
commit | 954b2a41e25b0924337593ed108d52081719dbed (patch) | |
tree | 322ed3fbc1fec3db4b7fa8d3c0c2afe788e9f30d /src/com/android/contacts/common/CallUtil.java | |
parent | 3d7e2893cb55dc0f1bc4f7e731322973ee09bc1f (diff) | |
download | packages_apps_ContactsCommon-954b2a41e25b0924337593ed108d52081719dbed.tar.gz packages_apps_ContactsCommon-954b2a41e25b0924337593ed108d52081719dbed.tar.bz2 packages_apps_ContactsCommon-954b2a41e25b0924337593ed108d52081719dbed.zip |
Fix usage of PhoneNumberUtils.isUriNumber
PhoneNumberUtils.isUriNumber is private and should not be used.
Bug: 6948882
Change-Id: I0724364080a402b64c78f2d82aed72e9acc04111
Diffstat (limited to 'src/com/android/contacts/common/CallUtil.java')
-rw-r--r-- | src/com/android/contacts/common/CallUtil.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/contacts/common/CallUtil.java b/src/com/android/contacts/common/CallUtil.java index d61b700e..87b8f83d 100644 --- a/src/com/android/contacts/common/CallUtil.java +++ b/src/com/android/contacts/common/CallUtil.java @@ -19,8 +19,8 @@ package com.android.contacts.common; import android.content.ComponentName; import android.content.Intent; import android.net.Uri; -import android.telephony.PhoneNumberUtils; +import com.android.contacts.common.util.PhoneNumberHelper; import com.android.phone.common.PhoneConstants; /** @@ -85,7 +85,7 @@ public class CallUtil { * numbers. */ public static Uri getCallUri(String number) { - if (PhoneNumberUtils.isUriNumber(number)) { + if (PhoneNumberHelper.isUriNumber(number)) { return Uri.fromParts(SCHEME_SIP, number, null); } return Uri.fromParts(SCHEME_TEL, number, null); |