From 7c414093c8c66a69cfea77a0ac10c1354f96cb7c Mon Sep 17 00:00:00 2001 From: Makoto Onuki Date: Mon, 9 Mar 2015 13:44:02 -0700 Subject: Show corp contacts in call-log... as wells as the missed-call notification. Just PhoneLookup.ENTERPRISE_CONTENT_FILTER_URI instead of PhoneLookup.CONTENT_FILTER_URI. This CL requires the new column in calllog provider. Change-Id: I61a2f63bcad102cb8a7e8021483b7dfe254abd95 --- src/com/android/dialer/calllog/ContactInfoHelper.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/com/android/dialer/calllog/ContactInfoHelper.java') diff --git a/src/com/android/dialer/calllog/ContactInfoHelper.java b/src/com/android/dialer/calllog/ContactInfoHelper.java index 3a1144f25..da03b072f 100644 --- a/src/com/android/dialer/calllog/ContactInfoHelper.java +++ b/src/com/android/dialer/calllog/ContactInfoHelper.java @@ -205,7 +205,7 @@ public class ContactInfoHelper { final ContactInfo info; // "contactNumber" is a SIP address, so use the PhoneLookup table with the SIP parameter. - Uri.Builder uriBuilder = PhoneLookup.CONTENT_FILTER_URI.buildUpon(); + Uri.Builder uriBuilder = PhoneLookup.ENTERPRISE_CONTENT_FILTER_URI.buildUpon(); uriBuilder.appendPath(Uri.encode(sipAddress)); uriBuilder.appendQueryParameter(PhoneLookup.QUERY_PARAMETER_SIP_ADDRESS, "1"); return lookupContactFromUri(uriBuilder.build()); @@ -236,7 +236,8 @@ public class ContactInfoHelper { } // The "contactNumber" is a regular phone number, so use the PhoneLookup table. - Uri uri = Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI, Uri.encode(contactNumber)); + Uri uri = Uri.withAppendedPath(PhoneLookup.ENTERPRISE_CONTENT_FILTER_URI, + Uri.encode(contactNumber)); ContactInfo info = lookupContactFromUri(uri); if (info != null && info != ContactInfo.EMPTY) { info.formattedNumber = formatPhoneNumber(number, null, countryIso); -- cgit v1.2.3