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

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

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

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

Change-Id: I91234f698c7c60687263abeb34e244291fcd07b0
parents bf147f8b 0e4a170f
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -2816,6 +2816,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();
            }
        }