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

Commit ee995a0a authored by Grace Jia's avatar Grace Jia Committed by Automerger Merge Worker
Browse files

Set visibleToInCallService to true if the extra is null. am: 038b224b

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/services/Telecomm/+/14899690

Change-Id: I3314219ff23559500993450293f5223f4baa24ca
parents 2cadf9a4 038b224b
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);