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

Commit cb619fba authored by Tyler Gunn's avatar Tyler Gunn Committed by gitbuildkicker
Browse files

Fix issue where incoming rejected calls were not being marked as such.

Code in onDisconnect for ImsPhoneConnection assumed that if the current
disconnect cause is "LOCAL" that we couldn't ever override this value.
However, in the case of an incoming rejected call, we do want to override
the disconnect cause.

Bug: 30474601
Change-Id: I3ffe4e6844658e063c01ea5e3aeec82989d053cd
parent 2e3a4ed5
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -391,7 +391,9 @@ public class ImsPhoneConnection extends Connection implements
    @Override
    public boolean onDisconnect(int cause) {
        Rlog.d(LOG_TAG, "onDisconnect: cause=" + cause);
        if (mCause != DisconnectCause.LOCAL) mCause = cause;
        if (mCause != DisconnectCause.LOCAL || cause == DisconnectCause.INCOMING_REJECTED) {
            mCause = cause;
        }
        return onDisconnect();
    }