From e0ec202ff354be3cd3bded7af8fca678dea7fb61 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Thu, 16 Oct 2014 16:26:48 -0700 Subject: Update UI based on MANAGE_CONFERENCE capability. - Remove the manage conference button if capability disabled. - Close the conference call manager if the capability is removed while the conference manager is visible. Bug: 17429707 Change-Id: Id242d776aa7b677edd4604b7c23caee315154b1b --- InCallUI/src/com/android/incallui/CallCardPresenter.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'InCallUI/src/com/android/incallui/CallCardPresenter.java') diff --git a/InCallUI/src/com/android/incallui/CallCardPresenter.java b/InCallUI/src/com/android/incallui/CallCardPresenter.java index f4568ef6d..ac85019bc 100644 --- a/InCallUI/src/com/android/incallui/CallCardPresenter.java +++ b/InCallUI/src/com/android/incallui/CallCardPresenter.java @@ -264,6 +264,11 @@ public class CallCardPresenter extends Presenter @Override public void onDetailsChanged(Call call, android.telecom.Call.Details details) { updatePrimaryCallState(); + + if (call.can(PhoneCapabilities.MANAGE_CONFERENCE) != PhoneCapabilities.can( + details.getCallCapabilities(), PhoneCapabilities.MANAGE_CONFERENCE)) { + maybeShowManageConferenceCallButton(); + } } private String getSubscriptionNumber() { -- cgit v1.2.3