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

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

Merge "IMS: notifyPostDialListeners after setPostDialState."

parents df6ea603 2ca02b4d
Loading
Loading
Loading
Loading
+10 −0
Original line number Original line Diff line number Diff line
@@ -764,6 +764,16 @@ public final class ImsPhoneCallTracker extends CallTracker {
        }
        }
    }
    }


    /*package*/ void
    sendDtmf(char c, Message result) {
        if (DBG) log("sendDtmf");

        ImsCall imscall = mForegroundCall.getImsCall();
        if (imscall != null) {
            imscall.sendDtmf(c, result);
        }
    }

    /*package*/ void
    /*package*/ void
    startDtmf(char c) {
    startDtmf(char c) {
        if (DBG) log("startDtmf");
        if (DBG) log("startDtmf");
+6 −1
Original line number Original line Diff line number Diff line
@@ -404,6 +404,7 @@ public class ImsPhoneConnection extends Connection {
            if (mImsCall != null) mImsCall.close();
            if (mImsCall != null) mImsCall.close();
            mImsCall = null;
            mImsCall = null;
        }
        }
        clearPostDialListeners();
        releaseWakeLock();
        releaseWakeLock();
        return changed;
        return changed;
    }
    }
@@ -440,7 +441,9 @@ public class ImsPhoneConnection extends Connection {
    private boolean
    private boolean
    processPostDialChar(char c) {
    processPostDialChar(char c) {
        if (PhoneNumberUtils.is12Key(c)) {
        if (PhoneNumberUtils.is12Key(c)) {
            mOwner.mCi.sendDtmf(c, mHandler.obtainMessage(EVENT_DTMF_DONE));
            if (mOwner != null) {
                mOwner.sendDtmf(c, mHandler.obtainMessage(EVENT_DTMF_DONE));
            }
        } else if (c == PhoneNumberUtils.PAUSE) {
        } else if (c == PhoneNumberUtils.PAUSE) {
            // From TS 22.101:
            // From TS 22.101:
            // It continues...
            // It continues...
@@ -484,6 +487,7 @@ public class ImsPhoneConnection extends Connection {
    @Override
    @Override
    protected void finalize()
    protected void finalize()
    {
    {
        clearPostDialListeners();
        releaseWakeLock();
        releaseWakeLock();
    }
    }


@@ -559,6 +563,7 @@ public class ImsPhoneConnection extends Connection {
            releaseWakeLock();
            releaseWakeLock();
        }
        }
        mPostDialState = s;
        mPostDialState = s;
        notifyPostDialListeners();
    }
    }


    private void
    private void