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

Commit c11fcd97 authored by Andrew Lee's avatar Andrew Lee
Browse files

Don't enable "add call" if CDMA and in conference.

Bug: 17581379
Change-Id: Id64dd7b2c780f2de7fcc637a68ba2e6bd1483889
parent 1c5926fc
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) {