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

Commit d9544092 authored by Roshan Pius's avatar Roshan Pius
Browse files

Disallow new call addition for live CDMA calls.

Disallow call addition when the foreground call does not support HOLD.
This is for CDMA calls which do not support HOLD capability and hence we
cannot place a simultaneous call.

BUG: 22850789
Change-Id: I2e4b396f5665b5517275766daa722866cf92d68c
parent 86b8e33e
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++;
            }