summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2022-06-30 04:34:32 -0700
committerLinux Build Service Account <lnxbuild@localhost>2022-06-30 04:34:32 -0700
commitcad7df933e71c2f30c38bfbf8fb03666778871cf (patch)
tree0698a49eb89f0a37533468bfbd2cf1e750ef93f9
parent68b9640cbcb7b95c900ecafd3cdb20c629c87347 (diff)
parent5995548a29b1fe23d7c719929f95345fdb916c97 (diff)
Merge 5995548a29b1fe23d7c719929f95345fdb916c97 on remote branch
Change-Id: Ic26e8fbb4ba1fc504282b78baffc45f1850c3d8f
-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);
+ }
+ }
}
}
};