From e96c83ad0a8f52a060d0ba7eac2290eb95b3b1c5 Mon Sep 17 00:00:00 2001 From: Tyler Gunn Date: Wed, 8 Apr 2015 13:22:25 -0700 Subject: Adding video call icon in secondary call info. - Icon indicates that a call is a video call. Per mocks. Bug: 20119995 Change-Id: Ibccfccaa3f2762659282bbde433796fe20da361c --- InCallUI/res/layout/secondary_call_info.xml | 7 +++++++ InCallUI/src/com/android/incallui/CallCardFragment.java | 6 +++++- InCallUI/src/com/android/incallui/CallCardPresenter.java | 14 +++++++++----- 3 files changed, 21 insertions(+), 6 deletions(-) (limited to 'InCallUI') diff --git a/InCallUI/res/layout/secondary_call_info.xml b/InCallUI/res/layout/secondary_call_info.xml index 85eef0ee1..e866795a6 100644 --- a/InCallUI/res/layout/secondary_call_info.xml +++ b/InCallUI/res/layout/secondary_call_info.xml @@ -40,6 +40,13 @@ android:paddingBottom="@dimen/secondary_call_info_vertical_padding" android:background="?android:attr/selectableItemBackground"> + + if (mSecondary == null) { // Clear the secondary display info. - ui.setSecondary(false, null, false, null, null, false /* isConference */); + ui.setSecondary(false, null, false, null, null, false /* isConference */, + false /* isVideoCall */); return; } @@ -536,7 +537,8 @@ public class CallCardPresenter extends Presenter false /* nameIsNumber */, null /* label */, getCallProviderLabel(mSecondary), - true /* isConference */); + true /* isConference */, + mSecondary.isVideoCall(mContext)); } else if (mSecondaryContactInfo != null) { Log.d(TAG, "updateSecondaryDisplayInfo() " + mSecondaryContactInfo); String name = getNameForCall(mSecondaryContactInfo); @@ -547,10 +549,12 @@ public class CallCardPresenter extends Presenter nameIsNumber, mSecondaryContactInfo.label, getCallProviderLabel(mSecondary), - false /* isConference */); + false /* isConference */, + mSecondary.isVideoCall(mContext)); } else { // Clear the secondary display info. - ui.setSecondary(false, null, false, null, null, false /* isConference */); + ui.setSecondary(false, null, false, null, null, false /* isConference */, + false /* isVideoCall */); } } @@ -735,7 +739,7 @@ public class CallCardPresenter extends Presenter void setPrimary(String number, String name, boolean nameIsNumber, String label, Drawable photo, boolean isSipCall); void setSecondary(boolean show, String name, boolean nameIsNumber, String label, - String providerLabel, boolean isConference); + String providerLabel, boolean isConference, boolean isVideoCall); void setCallState(int state, int videoState, int sessionModificationState, DisconnectCause disconnectCause, String connectionLabel, Drawable connectionIcon, String gatewayNumber, boolean isWifi); -- cgit v1.2.3