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

Commit c1bc8a9e authored by Ricardo Cerqueira's avatar 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 7d36b6f5
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -992,6 +992,10 @@ public abstract class PhoneBase extends Handler implements Phone {
     */
     */
    protected void notifyNewRingingConnectionP(Connection cn) {
    protected void notifyNewRingingConnectionP(Connection cn) {
        AsyncResult ar = new AsyncResult(null, cn, null);
        AsyncResult ar = new AsyncResult(null, cn, null);
        if (SystemProperties.getBoolean(
                "ro.telephony.call_ring.absent", true)) {
            sendIncomingCallRingNotification(mCallRingContinueToken);
        }
        mNewRingingConnectionRegistrants.notifyRegistrants(ar);
        mNewRingingConnectionRegistrants.notifyRegistrants(ar);
    }
    }