Dialing phone state should update active sub

SUPL emergency request can come into the framework
while in Dialing phone state before the call is
answered and goes to Active phone state.

The active sub being cached should be updated in
either Dialing state or Active state to ensure the SUPL
emergency request is made on the correct sub.

Test: manual
Bug: 211377690
Bug: 214088538

Change-Id: Ic2fa89b76a0e43caa1ea4470c38389c42f506148
This commit is contained in:
Dante Russo
2022-01-04 15:25:23 -08:00
committed by Yu-Han Yang
parent b559ac4e9f
commit 7b0ab311f3

View File

@@ -215,7 +215,9 @@ class GnssNetworkConnectivityHandler {
}
@Override
public void onPreciseCallStateChanged(PreciseCallState state) {
if (state.PRECISE_CALL_STATE_ACTIVE == state.getForegroundCallState()) {
if (PreciseCallState.PRECISE_CALL_STATE_ACTIVE == state.getForegroundCallState()
|| PreciseCallState.PRECISE_CALL_STATE_DIALING
== state.getForegroundCallState()) {
mActiveSubId = mSubId;
if (DEBUG) Log.d(TAG, "mActiveSubId: " + mActiveSubId);
}