diff options
author | Yupeng Hou <quic_yupehou@quicinc.com> | 2022-05-31 23:17:10 +0800 |
---|---|---|
committer | Yupeng Hou <quic_yupehou@quicinc.com> | 2022-06-07 21:33:26 +0800 |
commit | ca43d23e1e0b6421121a8b173d79646002cd04d3 (patch) | |
tree | 5c5ea527c8797cf0eed4449f82733fdaf1d577e2 | |
parent | a8e2fca93bb2567400a8c94a930dd61fecc14aa6 (diff) |
IMS: Update context based switch based on the DSDA/DSDS scenario
- Context based switch will not be updated to false while exiting
DSDA during the call. It will result in the call can't be active
after swapping the calls.
- After receiving MSIM_VOICE_CAPABILITY_CHANGED, update context
based switch.
Change-Id: Id7ac4485356260f0745d27880fc0c507d516f959
CRs-Fixed: 3208869
-rw-r--r-- | src/com/android/services/telephony/TelephonyConnectionService.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/com/android/services/telephony/TelephonyConnectionService.java b/src/com/android/services/telephony/TelephonyConnectionService.java index 543e9340be..d5d1d952ce 100644 --- a/src/com/android/services/telephony/TelephonyConnectionService.java +++ b/src/com/android/services/telephony/TelephonyConnectionService.java @@ -157,6 +157,15 @@ public class TelephonyConnectionService extends ConnectionService { maybeIndicateAnsweringWillDisconnect((TelephonyConnection)ringingConnection, ringingConnection.getPhoneAccountHandle()); } + + // Update context based switch based on the DSDA/DSDS scenario + final boolean shallDisableContextBasedSwap = isConcurrentCallsPossible(); + for (Connection current : getAllConnections()) { + if (current instanceof TelephonyConnection) { + ((TelephonyConnection) current).disableContextBasedSwap( + shallDisableContextBasedSwap); + } + } } } }; |