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

Commit 59f3bea0 authored by Tyler Gunn's avatar Tyler Gunn
Browse files

Set PROPERTY_VOIP_AUDIO_MODE on Call when it requests VOIP audio mode.

Setting PROPERTY_VOIP_AUDIO_MODE on the Call when the underlying connection
requests VOIP audio mode to be used.

Test: Ran new CTS tests
Bug: 110540796
Change-Id: I514d93c4f14f8641f85f9a1fa4980a12b24bde09
parent 67203a82
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -961,6 +961,12 @@ public class InCallController extends CallsManagerListenerBase {
        updateCall(call);
    }

    @Override
    public void onIsVoipAudioModeChanged(Call call) {
        Log.d(this, "onIsVoipAudioModeChanged %s", call);
        updateCall(call);
    }

    void bringToForeground(boolean showDialpad) {
        if (!mInCallServices.isEmpty()) {
            for (IInCallService inCallService : mInCallServices.values()) {
+4 −0
Original line number Diff line number Diff line
@@ -102,6 +102,10 @@ public class ParcelableCallUtils {
            properties |= android.telecom.Call.Details.PROPERTY_ENTERPRISE_CALL;
        }

        if (call.getIsVoipAudioMode()) {
            properties |= android.telecom.Call.Details.PROPERTY_VOIP_AUDIO_MODE;
        }

        // If this is a single-SIM device, the "default SIM" will always be the only SIM.
        boolean isDefaultSmsAccount = phoneAccountRegistrar != null &&
                phoneAccountRegistrar.isUserSelectedSmsPhoneAccount(call.getTargetPhoneAccount());