Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1a360c47 authored by Grace Jia's avatar Grace Jia
Browse files

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
parent 18bc8a5b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1244,7 +1244,7 @@ public class CallsManager extends Call.ListenerBase
                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 @@ public class CallsManager extends Call.ListenerBase
                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;