From 5f108c95fc76445f67d69a8570424c159953d556 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Wed, 15 Apr 2015 02:04:51 -0700 Subject: Show IMS Conference StatusHints in InCall. A lot of this logic for figuring out what label should be shown seems like it should be determined in the presenter, rather than passing through all this information to the fragment, but it can be cleaned up at another time. + minor layout tweak. Bug: 20181703 Change-Id: I392ce7cffc8c05eb94859892e899ce7c693895aa --- InCallUI/res/layout/primary_call_info.xml | 3 ++- .../src/com/android/incallui/CallCardFragment.java | 20 ++++++++++++-------- .../src/com/android/incallui/CallCardPresenter.java | 9 ++++++--- 3 files changed, 20 insertions(+), 12 deletions(-) diff --git a/InCallUI/res/layout/primary_call_info.xml b/InCallUI/res/layout/primary_call_info.xml index 8f0c0e24d..207b95bef 100644 --- a/InCallUI/res/layout/primary_call_info.xml +++ b/InCallUI/res/layout/primary_call_info.xml @@ -44,7 +44,8 @@ null, null, null, - false /* isWifi */); + false /* isWifi */, + false /* isConference */); getUi().showHdAudioIndicator(false); } @@ -291,7 +292,8 @@ public class CallCardPresenter extends Presenter getConnectionLabel(), getCallStateIcon(), getGatewayNumber(), - primaryCallCan(Details.CAPABILITY_WIFI)); + primaryCallCan(Details.CAPABILITY_WIFI), + mPrimary.isConferenceCall()); boolean showHdAudioIndicator = isPrimaryCallActive() && primaryCallCan(Details.CAPABILITY_HIGH_DEF_AUDIO); @@ -762,7 +764,8 @@ public class CallCardPresenter extends Presenter String providerLabel, boolean isConference, boolean isVideoCall); void setCallState(int state, int videoState, int sessionModificationState, DisconnectCause disconnectCause, String connectionLabel, - Drawable connectionIcon, String gatewayNumber, boolean isWifi); + Drawable connectionIcon, String gatewayNumber, boolean isWifi, + boolean isConference); void setPrimaryCallElapsedTime(boolean show, long duration); void setPrimaryName(String name, boolean nameIsNumber); void setPrimaryImage(Drawable image); -- cgit v1.2.3