summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <android-build-prod@system.gserviceaccount.com>2022-06-09 04:17:02 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2022-06-09 04:17:02 +0000
commite2481d6d725283e8bdf48b5347a0daa4025d0973 (patch)
tree0698a49eb89f0a37533468bfbd2cf1e750ef93f9
parent5a23543ce761dad96612ccdd21e4f1f884530636 (diff)
parentca43d23e1e0b6421121a8b173d79646002cd04d3 (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.java9
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);
+ }
+ }
}
}
};