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

Commit 9083f2c3 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Fix to update LCH for a conference call"

parents 26a09528 b55de07b
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -1989,9 +1989,15 @@ public final class CallsManager extends Call.ListenerBase {
            if (lchState != phAcc.isSet(PhoneAccount.LCH)) {
                Call call = getNonRingingLiveCall(sub);
                Log.i(this, " setLocal Call Hold to  = " + lchState + " sub:" + sub);

                if (call != null) {
                    if (call.getChildCalls().size() > 1) {
                        Call child = call.getChildCalls().get(0);
                        child.setLocalCallHold(lchState ? 1 : 0);
                    } else {
                        call.setLocalCallHold(lchState ? 1 : 0);
                    }
                }
                if (lchState) {
                    phAcc.setBit(PhoneAccount.LCH);
                } else {