Fix usage of PhoneNumberUtils.isUriNumber
PhoneNumberUtils.isUriNumber is private and should not be used.
Bug: 6948882
Change-Id: I0724364080a402b64c78f2d82aed72e9acc04111
diff --git a/src/com/android/contacts/common/CallUtil.java b/src/com/android/contacts/common/CallUtil.java
index d61b700..87b8f83 100644
--- a/src/com/android/contacts/common/CallUtil.java
+++ b/src/com/android/contacts/common/CallUtil.java
@@ -19,8 +19,8 @@
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 @@
* 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);