diff options
author | Treehugger Robot <android-build-prod@system.gserviceaccount.com> | 2022-06-09 04:17:02 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2022-06-09 04:17:02 +0000 |
commit | e2481d6d725283e8bdf48b5347a0daa4025d0973 (patch) | |
tree | 0698a49eb89f0a37533468bfbd2cf1e750ef93f9 | |
parent | 5a23543ce761dad96612ccdd21e4f1f884530636 (diff) | |
parent | ca43d23e1e0b6421121a8b173d79646002cd04d3 (diff) |
Merge "IMS: Update context based switch based on the DSDA/DSDS scenario" into s-keystone-qcom-dev
-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); + } + } } } }; |