OSDN Git Service

Use ENTERPRISE_CONTENT_FILTER_URI for phone lookup URI
authorYoshiharu Kurita <yoshiharu.x.kurita@sonymobile.com>
Mon, 7 Dec 2015 13:30:15 +0000 (22:30 +0900)
committerAjay Panicker <apanicke@google.com>
Tue, 15 Nov 2016 03:00:57 +0000 (03:00 +0000)
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

src/com/android/bluetooth/map/SmsMmsContacts.java

index f43a270..20ac10e 100644 (file)
@@ -166,7 +166,8 @@ public class SmsMmsContacts {
 
         // 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) {