diff options
author | Andrew Lee <anwlee@google.com> | 2015-09-09 20:59:33 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-09-09 20:59:33 +0000 |
commit | 089af4ef5ca10736ea43b724230c8e6802c9437e (patch) | |
tree | 5e42862f30b8ae882cd656949fd3456c490579eb /InCallUI | |
parent | 188d5e0b6509a3846b83524fc158fbb1880361d9 (diff) | |
parent | 8e4787e7b3d981d45ff6621a5b49f632b27823f9 (diff) |
Merge "Use Dialer utility for getting LookupUri." into ub-contactsdialer-a-dev
Diffstat (limited to 'InCallUI')
-rw-r--r-- | InCallUI/src/com/android/incallui/CallerInfoAsyncQuery.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/InCallUI/src/com/android/incallui/CallerInfoAsyncQuery.java b/InCallUI/src/com/android/incallui/CallerInfoAsyncQuery.java index 046b77745..ec2296f86 100644 --- a/InCallUI/src/com/android/incallui/CallerInfoAsyncQuery.java +++ b/InCallUI/src/com/android/incallui/CallerInfoAsyncQuery.java @@ -29,6 +29,7 @@ import android.provider.ContactsContract.PhoneLookup; import android.telephony.PhoneNumberUtils; import android.text.TextUtils; +import com.android.dialer.calllog.ContactInfoHelper; import com.android.contacts.common.util.PhoneNumberHelper; import com.android.contacts.common.util.TelephonyManagerUtils; @@ -343,11 +344,7 @@ public class CallerInfoAsyncQuery { // Construct the URI object and query params, and start the query. - final Uri contactRef = PhoneLookup.ENTERPRISE_CONTENT_FILTER_URI.buildUpon() - .appendPath(info.phoneNumber) - .appendQueryParameter(PhoneLookup.QUERY_PARAMETER_SIP_ADDRESS, - String.valueOf(PhoneNumberHelper.isUriNumber(info.phoneNumber))) - .build(); + final Uri contactRef = ContactInfoHelper.getContactInfoLookupUri(info.phoneNumber); if (DBG) { Log.d(LOG_TAG, "==> contactRef: " + sanitizeUriToString(contactRef)); |