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

Commit c57ae40b authored by Ravindra's avatar Ravindra
Browse files

Fix the difference in design between SSSS and DSDA

In SSSS when an additional call is attempted on top of an active call the call
is allowed if the call was made on the  same account as that of active call.
But in DSDA the hold capability of an ACTIVE call is checked and if it had
the capability then the active  is first put to hold and then the new call
was placed which contradicts the SSSS behavior.
So allow the call in DSDA if the phone account of the new call is same as
the ACTIVE call.

Change-Id: I6c06723884638e1b92af16c873c517f89ceb35b8
CRs-Fixed: 761862
parent 00f9d2bf
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1523,7 +1523,9 @@ public final class CallsManager extends Call.ListenerBase {
                // There is no more room for any more calls, unless it's an emergency.
                return false;  // No more room!
            }

            if (Objects.equals(liveCall.getTargetPhoneAccount(), call.getTargetPhoneAccount())) {
                return true;
            }
            // Try to hold the live call before attempting the new outgoing call.
            if (liveCall.can(PhoneCapabilities.HOLD)) {
                liveCall.hold();