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 --- res/layout/call_log_list_item.xml | 8 ++++++++ src/com/android/dialer/PhoneCallDetails.java | 4 ++++ src/com/android/dialer/calllog/CallLogAdapter.java | 6 ++++++ .../android/dialer/calllog/CallLogListItemViewHolder.java | 2 ++ src/com/android/dialer/calllog/ContactInfo.java | 3 +++ src/com/android/dialer/calllog/ContactInfoHelper.java | 5 +++++ src/com/android/dialer/list/RegularSearchListAdapter.java | 12 ++++++++---- 7 files changed, 36 insertions(+), 4 deletions(-) diff --git a/res/layout/call_log_list_item.xml b/res/layout/call_log_list_item.xml index 95de2680c..469e72ae5 100644 --- a/res/layout/call_log_list_item.xml +++ b/res/layout/call_log_list_item.xml @@ -101,6 +101,14 @@ android:layout_marginEnd="@dimen/call_log_icon_margin" android:layout_gravity="center_vertical" /> + +