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

Commit 4d4857b2 authored by Tyler Gunn's avatar Tyler Gunn Committed by Android (Google) Code Review
Browse files

Merge "Properly handle multi-endpoint answered elsewhere disconnect cause." into nyc-mr1-dev

parents 28b8883c 5deeeef8
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1254,6 +1254,8 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall {
                return DisconnectCause.FDN_BLOCKED;

            case ImsReasonInfo.CODE_ANSWERED_ELSEWHERE:
                return DisconnectCause.ANSWERED_ELSEWHERE;

            case ImsReasonInfo.CODE_CALL_END_CAUSE_CALL_PULL:
                return DisconnectCause.CALL_PULLED;
            default:
@@ -1366,7 +1368,8 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall {
                mOnHoldToneStarted = false;
                mOnHoldToneId = -1;
            }
            if (conn != null && conn.isIncoming() && conn.getConnectTime() == 0) {
            if (conn != null && conn.isIncoming() && conn.getConnectTime() == 0
                    && cause != DisconnectCause.ANSWERED_ELSEWHERE) {
                // Missed
                if (cause == DisconnectCause.NORMAL) {
                    cause = DisconnectCause.INCOMING_MISSED;