From 240523d3e1b4502326c8d0d313dd1787aa8ff024 Mon Sep 17 00:00:00 2001 From: Victor Chang Date: Thu, 17 Dec 2015 09:14:15 +0000 Subject: Show work badge icon/description in InCallUI/Dialer Add work badge icon in calllog for work contacts To see this feature 1. Receive/Make a call from work contact (a contact in work profile has the phone number) 2. Drop/miss the call. See a badge icon next to phone label in calllog BUG=26082618 Change-Id: I7371795e3c3ef925739096f39a70f03722dd430b --- src/com/android/dialer/PhoneCallDetails.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/com/android/dialer/PhoneCallDetails.java') diff --git a/src/com/android/dialer/PhoneCallDetails.java b/src/com/android/dialer/PhoneCallDetails.java index 71aa26d15..b332b43cc 100644 --- a/src/com/android/dialer/PhoneCallDetails.java +++ b/src/com/android/dialer/PhoneCallDetails.java @@ -16,6 +16,7 @@ package com.android.dialer; +import com.android.contacts.common.ContactsUtils.UserType; import com.android.contacts.common.preference.ContactsPreferences; import com.android.dialer.calllog.PhoneNumberDisplayUtil; @@ -101,6 +102,9 @@ public class PhoneCallDetails { // Whether the contact number is a voicemail number. public boolean isVoicemail; + /** The {@link UserType} of the contact */ + public @UserType long contactUserType; + /** * If this is a voicemail, whether the message is read. For other types of calls, this defaults * to {@code true}. -- cgit v1.2.3