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

Commit 67f1ff0a authored by Ricardo Cerqueira's avatar Ricardo Cerqueira
Browse files

telephony: Allow a device to always force the use of short DTMF

Use this only when the RIL's long DTMF implementation is broken

Change-Id: I88c962c154fda03e6aa1990b7aa8eab2a0f13d3d
parent ba37bf68
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -1117,8 +1117,13 @@ public final class RIL extends BaseCommands implements CommandsInterface {

    public void
    startDtmf(char c, Message result) {
        RILRequest rr
                = RILRequest.obtain(RIL_REQUEST_DTMF_START, result);
        RILRequest rr;
        if (SystemProperties.getBoolean(
                 "ro.telephony.force_short_dtmf", false)) {
            rr = RILRequest.obtain(RIL_REQUEST_DTMF, result);
        } else {
            rr = RILRequest.obtain(RIL_REQUEST_DTMF_START, result);
        }

        if (RILJ_LOGD) riljLog(rr.serialString() + "> " + requestToString(rr.mRequest));