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

Commit 2ca02b4d authored by Suchand Ghosh's avatar Suchand Ghosh Committed by Gerrit - the friendly Code Review server
Browse files

IMS: notifyPostDialListeners after setPostDialState.

There is no notification to upper layer about onPostDialWait.
Add notifyPostDialListeners() to notify onPostDialWait.
Also clearPostDialListeners at onDisconnect() and finalize().
And send DTMF through ImsPhoneCallTracker.

Change-Id: I66a576fb0440b876f6137001f2bb611f6d1ddff4
CRs-Fixed: 725285
parent 54012eb0
Loading
Loading
Loading
Loading
+10 −0
Original line number 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
    startDtmf(char c) {
        if (DBG) log("startDtmf");
+6 −1
Original line number Diff line number Diff line
@@ -404,6 +404,7 @@ public class ImsPhoneConnection extends Connection {
            if (mImsCall != null) mImsCall.close();
            mImsCall = null;
        }
        clearPostDialListeners();
        releaseWakeLock();
        return changed;
    }
@@ -440,7 +441,9 @@ public class ImsPhoneConnection extends Connection {
    private boolean
    processPostDialChar(char 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) {
            // From TS 22.101:
            // It continues...
@@ -484,6 +487,7 @@ public class ImsPhoneConnection extends Connection {
    @Override
    protected void finalize()
    {
        clearPostDialListeners();
        releaseWakeLock();
    }

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

    private void