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

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

Merge "Don't show add if there is an outgoing call." into lmp-mr1-dev

parents 7ac515a2 113ad62c
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -902,6 +902,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()) {