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

Commit 038b224b authored by Grace Jia's avatar Grace Jia
Browse files

Set visibleToInCallService to true if the extra is null.

Bug: 187914491
Test: Manually test bluetooth audio using google voice
Change-Id: I8e26974e518e5eda0a49b77c0aafd06b26d9f21d
parent bd950b26
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -1288,8 +1288,8 @@ public class CallsManager extends Call.ListenerBase
            if (call.isSelfManaged()) {
                // Self managed calls will always be voip audio mode.
                call.setIsVoipAudioMode(true);
                call.setVisibleToInCallService(phoneAccountExtras != null
                        && phoneAccountExtras.getBoolean(
                call.setVisibleToInCallService(phoneAccountExtras == null
                        || phoneAccountExtras.getBoolean(
                        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.
@@ -1554,8 +1554,8 @@ public class CallsManager extends Call.ListenerBase
            if (isSelfManaged) {
                // Self-managed calls will ALWAYS use voip audio mode.
                call.setIsVoipAudioMode(true);
                call.setVisibleToInCallService(phoneAccountExtra != null
                        && phoneAccountExtra.getBoolean(
                call.setVisibleToInCallService(phoneAccountExtra == null
                        || phoneAccountExtra.getBoolean(
                                PhoneAccount.EXTRA_ADD_SELF_MANAGED_CALLS_TO_INCALLSERVICE, true));
            }
            call.setInitiatingUser(initiatingUser);