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

Commit 10b63ea1 authored by Ravindra's avatar Ravindra Committed by Gerrit - the friendly Code Review server
Browse files

Fix to update LCH for a conference call

While updating lch on a child connection in a conference call since
parent call will not have a associated connection.

Change-Id: Ida5d887eaa2e93b337d6cd6993cf2cca69acec02
parent 0b319b68
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -1951,9 +1951,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 {