Set default value of EXTRA_ADD_SELF_MANAGED_CALLS_TO_INCALLSERVICE
true.
Self-managed connections need to bind to special in-call service in
order to expose itself to bluetooth stack.
Bug: 178679937
Test: Manually use duo to make self-managed calls and make sure it's
audible on BT
Change-Id: If09e080398643ee76836eaaed15dd9d09d925df3
diff --git a/src/com/android/server/telecom/CallsManager.java b/src/com/android/server/telecom/CallsManager.java
index b6626a0..5b3c2f7 100755
--- a/src/com/android/server/telecom/CallsManager.java
+++ b/src/com/android/server/telecom/CallsManager.java
@@ -1244,7 +1244,7 @@
call.setIsVoipAudioMode(true);
call.setVisibleToInCallService(phoneAccountExtras != null
&& phoneAccountExtras.getBoolean(
- PhoneAccount.EXTRA_ADD_SELF_MANAGED_CALLS_TO_INCALLSERVICE, false));
+ PhoneAccount.EXTRA_ADD_SELF_MANAGED_CALLS_TO_INCALLSERVICE, true));
} else {
// Incoming call is managed, the active call is self-managed and can't be held.
// We need to set extras on it to indicate whether answering will cause a
@@ -1510,7 +1510,7 @@
call.setIsVoipAudioMode(true);
call.setVisibleToInCallService(phoneAccountExtra != null
&& phoneAccountExtra.getBoolean(
- PhoneAccount.EXTRA_ADD_SELF_MANAGED_CALLS_TO_INCALLSERVICE, false));
+ PhoneAccount.EXTRA_ADD_SELF_MANAGED_CALLS_TO_INCALLSERVICE, true));
}
call.setInitiatingUser(initiatingUser);
isReusedCall = false;