To retrieve not only personal caller-id but also corporate caller-id,
we need to use ENTERPRISE_CONTENT_FILTER_URI for phone lookup URI
instead of CONTENT_FILTER_URI.
This modification is required by Android for Work.
Bug:
28947490
Change-Id: Iee51c1bebf8ee41668bec305cf37d2cdfdda5e2e
// TODO: Should we change to extract both formatted name, and display name?
- Uri uri = Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI,Uri.encode(phone));
+ Uri uri = Uri.withAppendedPath(PhoneLookup.ENTERPRISE_CONTENT_FILTER_URI,
+ Uri.encode(phone));
String selection = CONTACT_SEL_VISIBLE;
String[] selectionArgs = null;
if(contactNameFilter != null) {