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

Commit 0e4a170f authored by Brad Ebinger's avatar Brad Ebinger Committed by Automerger Merge Worker
Browse files

Merge "Trigger silent redial under alerting state" am: b2944bf8

Original change: https://android-review.googlesource.com/c/platform/frameworks/opt/telephony/+/1368197

Change-Id: I61f724486d44a724133f43e4d78376e0bc08148f
parents 81aaf2d5 b2944bf8
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -2783,6 +2783,17 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall {
                }
                mMetrics.writeOnImsCallStartFailed(mPhone.getPhoneId(), imsCall.getCallSession(),
                        reasonInfo);
            } else if (reasonInfo.getCode() == ImsReasonInfo.CODE_LOCAL_CALL_CS_RETRY_REQUIRED
                    && mForegroundCall.getState() == ImsPhoneCall.State.ALERTING) {
                if (DBG) log("onCallStartFailed: Initiated call by silent redial"
                        + " under ALERTING state.");
                ImsPhoneConnection conn = findConnection(imsCall);
                if (conn != null) {
                    mForegroundCall.detach(conn);
                    removeConnection(conn);
                }
                updatePhoneState();
                mPhone.initiateSilentRedial();
            }
        }