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

Commit 67298dea authored by Ricardo Cerqueira's avatar Ricardo Cerqueira Committed by Ricardo Cerqueira
Browse files

telephony: Support broken RIL implementations without CALL_RING events

This is probably specific to the LGE star: Extend the call_ring.multiple
configuration to the ringing connection event, since the CALL_RING event
itself doesn't appear. Without this, only the first ring happens.

Enable with ro.telephony.call_ring.absent=true

Change-Id: Idd272583769757c6baa638fd644b5b919cf80fec
parent a252caad
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1075,6 +1075,11 @@ public abstract class PhoneBase extends Handler implements Phone {
        if (!mIsVoiceCapable)
            return;
        AsyncResult ar = new AsyncResult(null, cn, null);
        if (SystemProperties.getBoolean(
                "ro.telephony.call_ring.absent", true)) {
            sendMessageDelayed(
                    obtainMessage(EVENT_CALL_RING_CONTINUE, mCallRingContinueToken, 0), mCallRingDelay);
        }
        mNewRingingConnectionRegistrants.notifyRegistrants(ar);
    }