Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8aac647e authored by Roshan Pius's avatar Roshan Pius Committed by Android Git Automerger
Browse files

am 9f8db94f: am d9544092: Disallow new call addition for live CDMA calls.

* commit '9f8db94f':
  Disallow new call addition for live CDMA calls.
parents 9f91c905 9f8db94f
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1070,6 +1070,14 @@ public class CallsManager extends Call.ListenerBase implements VideoProviderProx
            if (call.isEmergencyCall()) {
                // We never support add call if one of the calls is an emergency call.
                return false;
            } else  if (!call.getChildCalls().isEmpty() && !call.can(Connection.CAPABILITY_HOLD)) {
                // This is to deal with CDMA conference calls. CDMA conference calls do not
                // allow the addition of another call when it is already in a 3 way conference.
                // So, we detect that it is a CDMA conference call by checking if the call has
                // some children and it does not support the CAPABILILTY_HOLD
                // TODO: This maybe cleaner if the lower layers can explicitly signal to telecom
                // about this limitation (b/22880180).
                return false;
            } else if (call.getParentCall() == null) {
                count++;
            }