disconnect ongoing unholdable call for transactional calls
Previously, if an ongoing unholdable call was active and a new
incoming transactional call came in, the notifications answer
button would actually disconnect the transactional call in favor of
keeping the active unholdable call.
Now, CallControlCallback requests for transactional calls can disconnect
the ongoing unholdable calls. This behavior makes things more consistent
with the legacy ConnectionService way.
Fixes: 340621152
Flag: com.android.server.telecom.flags.transactional_hold_disconnects_unholdable
Test: 7 unit tests + manual testing
(1) start unholdable call
(2) create incoming transactional call
(3) answer via notification
observe/expect: unholdable call disconnects &
transactional call becomes active
Change-Id: Id941d7f34454ca31dddf67c121762ee392c790e8
diff --git a/flags/telecom_calls_manager_flags.aconfig b/flags/telecom_calls_manager_flags.aconfig
index 28e9dd8..f46e844 100644
--- a/flags/telecom_calls_manager_flags.aconfig
+++ b/flags/telecom_calls_manager_flags.aconfig
@@ -24,3 +24,14 @@
description: "Enables simultaneous call sequencing for SIM PhoneAccounts"
bug: "327038818"
}
+
+# OWNER=tjstuart TARGET=24Q4
+flag {
+ name: "transactional_hold_disconnects_unholdable"
+ namespace: "telecom"
+ description: "Disconnect ongoing unholdable calls for CallControlCallbacks"
+ bug: "340621152"
+ metadata {
+ purpose: PURPOSE_BUGFIX
+ }
+}