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

Commit add3c272 authored by Andrew Lee's avatar Andrew Lee Committed by Android (Google) Code Review
Browse files

Merge "Don't enable "add call" if CDMA and in conference." into lmp-dev

parents c7f6f8cd c11fcd97
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -779,6 +779,14 @@ public final class CallsManager extends Call.ListenerBase {
            return false;
        }

        // Use canManageConference as a mechanism to check if the call is CDMA.
        // Disable "Add Call" for CDMA calls which are conference calls.
        boolean canManageConference = PhoneCapabilities.MANAGE_CONFERENCE
                == (call.getCallCapabilities() & PhoneCapabilities.MANAGE_CONFERENCE);
        if (call.isConference() && !canManageConference) {
            return false;
        }

        // Loop through all the other calls and there exists a top level (has no parent) call
        // that is not the specified call, return false.
        for (Call otherCall : mCalls) {