From 495110a89d71f68379a0046d624be1af4085c7b8 Mon Sep 17 00:00:00 2001 From: Victor Chang Date: Mon, 25 Jan 2016 17:48:58 +0000 Subject: Remove the work badge icon for Google caller id in call log An extended directory is custom directory in the app, but not a directory provided by framework. So it can't be USER_TYPE_WORK When a search result is selected, RegularSearchFragment calls getContactInfo and caches the resulting @{link ContactInfo} into a local db. Set userType to USER_TYPE_WORK only if it's NOT extended directory id and is enterprise directory BUG=26680007 Change-Id: I92aa4b7c3dac20257e689eb0a4dfa0afbd81764c --- src/com/android/dialer/calllog/ContactInfo.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/com/android/dialer/calllog') diff --git a/src/com/android/dialer/calllog/ContactInfo.java b/src/com/android/dialer/calllog/ContactInfo.java index 1020d109c..40d963e4e 100644 --- a/src/com/android/dialer/calllog/ContactInfo.java +++ b/src/com/android/dialer/calllog/ContactInfo.java @@ -93,6 +93,7 @@ public class ContactInfo { .add("type", type).add("label", label) .add("number", number).add("formattedNumber",formattedNumber) .add("normalizedNumber", normalizedNumber).add("photoId", photoId) - .add("photoUri", photoUri).add("objectId", objectId).toString(); + .add("photoUri", photoUri).add("objectId", objectId) + .add("userType",userType).toString(); } } -- cgit v1.2.3