diff options
author | pengfeix <quic_pengfeix@quicinc.com> | 2022-06-24 20:27:30 +0800 |
---|---|---|
committer | KOTA VENKAT SWAROOP <quic_venkatsw@quicinc.com> | 2022-07-11 14:57:46 +0530 |
commit | ede15e59f89c9913d36fc7d729f300c548365968 (patch) | |
tree | 0537d2203567e30bdae304bf7b0779cc5690e78a | |
parent | cad7df933e71c2f30c38bfbf8fb03666778871cf (diff) |
Update extras for two incoming calls once DSDA and DSDS transition
- In DSDA mode, in case of two incoming calls in two different subs,
once DSDA and DSDS transition, telephony needs to update
EXTRA_ANSWERING_DROPS_FG_CALL for each incoming call instead of
only setting it for the first incoming call.
Change-Id: I0c3ff9691fca5da48a5569c962fc8e48216f934b
CRs-Fixed: 3223606
-rw-r--r-- | src/com/android/services/telephony/TelephonyConnectionService.java | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/com/android/services/telephony/TelephonyConnectionService.java b/src/com/android/services/telephony/TelephonyConnectionService.java index d5d1d952ce..6f579b910e 100644 --- a/src/com/android/services/telephony/TelephonyConnectionService.java +++ b/src/com/android/services/telephony/TelephonyConnectionService.java @@ -150,12 +150,14 @@ public class TelephonyConnectionService extends ConnectionService { handleTtyModeChange(isTtyNowEnabled); } } else if (ACTION_MSIM_VOICE_CAPABILITY_CHANGED.equals(action)) { - // Add extra to call if answering this incoming call would cause an in progress + // Add extra to calls if answering one of incoming call would cause an in progress // call on another subscription to be disconnected. - Connection ringingConnection = getRingingConnection(); - if (ringingConnection != null) { - maybeIndicateAnsweringWillDisconnect((TelephonyConnection)ringingConnection, - ringingConnection.getPhoneAccountHandle()); + for (Connection current : getAllConnections()) { + if (isTelephonyConnection(current) && + current.getState() == Connection.STATE_RINGING) { + maybeIndicateAnsweringWillDisconnect((TelephonyConnection)current, + current.getPhoneAccountHandle()); + } } // Update context based switch based on the DSDA/DSDS scenario |