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

Commit 113ad62c authored by Andrew Lee's avatar Andrew Lee
Browse files

Don't show add if there is an outgoing call.

We only support one outgoing call, so don't enable ADD when the call
is in an outgoing state (eg. dialing).

Bug: 18504905
Change-Id: Ie65beff2f1d7f4644d6b653902ce9fe4b3236e4f
parent d5c2fcf3
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -895,6 +895,10 @@ public final class CallsManager extends Call.ListenerBase {
     * Returns true if telecom supports adding another top-level call.
     */
    boolean canAddCall() {
        if (getFirstCallWithState(OUTGOING_CALL_STATES) != null) {
            return false;
        }

        int count = 0;
        for (Call call : mCalls) {
            if (call.isEmergencyCall()) {