summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--InCallUI/src/com/android/incallui/CallCardPresenter.java5
-rw-r--r--InCallUI/src/com/android/incallui/ConferenceManagerPresenter.java20
2 files changed, 17 insertions, 8 deletions
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<CallCardPresenter.CallCardUi>
@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() {
diff --git a/InCallUI/src/com/android/incallui/ConferenceManagerPresenter.java b/InCallUI/src/com/android/incallui/ConferenceManagerPresenter.java
index 555048da1..f754fdec8 100644
--- a/InCallUI/src/com/android/incallui/ConferenceManagerPresenter.java
+++ b/InCallUI/src/com/android/incallui/ConferenceManagerPresenter.java
@@ -81,16 +81,20 @@ public class ConferenceManagerPresenter
boolean canSeparate = PhoneCapabilities.can(
details.getCallCapabilities(), PhoneCapabilities.SEPARATE_FROM_CONFERENCE);
- if (call.can(PhoneCapabilities.DISCONNECT_FROM_CONFERENCE) == canDisconnect
- && call.can(PhoneCapabilities.SEPARATE_FROM_CONFERENCE) == canSeparate) {
- return;
+ if (call.can(PhoneCapabilities.DISCONNECT_FROM_CONFERENCE) != canDisconnect
+ || call.can(PhoneCapabilities.SEPARATE_FROM_CONFERENCE) != canSeparate) {
+ for (int i = 0; i < mCallerIds.length; i++) {
+ if (mCallerIds[i] == call.getId()) {
+ getUi().updateSeparateButtonForRow(i, canSeparate);
+ getUi().updateEndButtonForRow(i, canDisconnect);
+ break;
+ }
+ }
}
- for (int i = 0; i < mCallerIds.length; i++) {
- if (mCallerIds[i] == call.getId()) {
- getUi().updateSeparateButtonForRow(i, canSeparate);
- getUi().updateEndButtonForRow(i, canDisconnect);
- }
+ if (!PhoneCapabilities.can(
+ details.getCallCapabilities(), PhoneCapabilities.MANAGE_CONFERENCE)) {
+ getUi().setVisible(false);
}
}