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

Commit 2770b0f5 authored by Santos Cordon's avatar Santos Cordon
Browse files

Nullify mPendingMO *before* updating the call state.

The code used to null out mPendingMO after it send out the notification
and updating it's state. While mPendingMO is not null, update-state code
will always short-circuit to offhook so it is necessary to reset the
variable before updating the state (GSM & CDMA already do this).

Bug: 23530363
Change-Id: I0491b371d0de52d21fd6e0d96e2660c63c38fada
parent 3c85e84a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1119,10 +1119,10 @@ public final class ImsPhoneCallTracker extends CallTracker {
                    mPhone.initiateSilentRedial();
                    return;
                } else {
                    mPendingMO = null;
                    int cause = getDisconnectCauseFromReasonInfo(reasonInfo);
                    processCallStateChange(imsCall, ImsPhoneCall.State.DISCONNECTED, cause);
                }
                mPendingMO = null;
            }
        }