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

Commit de83bcf1 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "DSDA: Handle call resume failure" into main

parents 14d1646b ec3e01f4
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -259,6 +259,8 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall {
    private Optional<Integer> mCurrentlyConnectedSubId = Optional.empty();

    private final MmTelFeatureListener mMmTelFeatureListener = new MmTelFeatureListener();
    private com.android.server.telecom.flags.FeatureFlags mTelecomFlags =
            new com.android.server.telecom.flags.FeatureFlagsImpl();
    private class MmTelFeatureListener extends MmTelFeature.Listener {

        private IImsCallSessionListener processIncomingCall(@NonNull IImsCallSession c,
@@ -4083,6 +4085,13 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall {
                            + " in the single call unhold case");
                }
            }
            ImsPhoneConnection conn = findConnection(imsCall);
            // Send connection event so that Telecom can unhold the call the bg call that was held
            // for calls across phone accounts.
            if (mTelecomFlags.enableCallSequencing() && conn != null
                    && conn.getState() != ImsPhoneCall.State.DISCONNECTED) {
                conn.onConnectionEvent(android.telecom.Connection.EVENT_CALL_RESUME_FAILED, null);
            }
            mPhone.notifySuppServiceFailed(Phone.SuppService.RESUME);
            mMetrics.writeOnImsCallResumeFailed(mPhone.getPhoneId(), imsCall.getCallSession(),
                    reasonInfo);