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

Commit f8f01529 authored by Tyler Gunn's avatar Tyler Gunn Committed by android-build-merger
Browse files

Clear postdial digits on failed outgoing call. am: c345cf26

am: 50df2440

Change-Id: I40bf731db8bc2923c21f3686e0601d3c760f9b1e
parents 5298cf0e 50df2440
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -254,7 +254,7 @@ public class Call implements CreateConnectionResponse, EventManager.Loggable,
    /**
     * The post-dial digits that were dialed after the network portion of the number
     */
    private final String mPostDialDigits;
    private String mPostDialDigits;

    /**
     * The secondary line number that an incoming call has been received on if the SIM subscription
@@ -1005,6 +1005,10 @@ public class Call implements CreateConnectionResponse, EventManager.Loggable,
        return mPostDialDigits;
    }

    public void clearPostDialDigits() {
        mPostDialDigits = null;
    }

    public String getViaNumber() {
        return mViaNumber;
    }
+8 −0
Original line number Diff line number Diff line
@@ -1662,6 +1662,14 @@ public class ConnectionServiceWrapper extends ServiceBinder implements
        if (connection.getState() == Connection.STATE_DISCONNECTED) {
            // A connection that begins in the DISCONNECTED state is an indication of
            // failure to connect; we handle all failures uniformly
            Call foundCall = mCallIdMapper.getCall(callId);
            if (foundCall != null) {
                // The post-dial digits are created when the call is first created.  Normally
                // the ConnectionService is responsible for stripping them from the address, but
                // since a failed connection will not have done this, we could end up with duplicate
                // post-dial digits.
                foundCall.clearPostDialDigits();
            }
            removeCall(callId, connection.getDisconnectCause());
        } else {
            // Successful connection