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

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

Merge "DSDA: Fix to stop playing LCH tone"

parents e296dcc3 63e6a45d
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -912,6 +912,17 @@ public final class CallsManager extends Call.ListenerBase {
            Log.d(this,"Set active sub to conversation sub");
            setActiveSubscription(getConversationSub());
        }

        if ((call.getTargetPhoneAccount() != null) && (phAcc.isSet(PhoneAccount.LCH))) {
            Call activecall = getFirstCallWithStateUsingSubId(call.getTargetPhoneAccount().getId(),
                    CallState.RINGING, CallState.DIALING, CallState.ACTIVE, CallState.ON_HOLD);
            Log.d(this,"activecall: " + activecall);
            if (activecall == null) {
                phAcc.unSetBit(PhoneAccount.LCH);
                manageMSimInCallTones(false);
            }
        }

        removeCall(call);
        if (!hasAnyCalls()) {
            updateLchStatus(null);