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

Commit aa3c1e63 authored by Hall Liu's avatar Hall Liu Committed by android-build-merger
Browse files

Merge "IMS: Propagate media profile changed message" am: 253824fb am: 73d7a89a

am: 3106fd7c

Change-Id: I196626cc667a396bf96fb9ac08aaa24961ba42c0
parents b4b53d35 3106fd7c
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -2727,6 +2727,14 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall {
            }
        }

        @Override
        public void onRttAudioIndicatorChanged(ImsCall imsCall, ImsStreamMediaProfile profile) {
          ImsPhoneConnection conn = findConnection(imsCall);
            if (conn != null) {
                conn.onRttAudioIndicatorChanged(profile);
            }
        }

        /**
         * Handles a change to the multiparty state for an {@code ImsCall}.  Notifies the associated
         * {@link ImsPhoneConnection} of the change.
+8 −0
Original line number Diff line number Diff line
@@ -1052,6 +1052,14 @@ public class ImsPhoneConnection extends Connection implements
        mRttTextHandler.sendToInCall(message);
    }

    public void onRttAudioIndicatorChanged(ImsStreamMediaProfile profile) {
        Bundle extras = new Bundle();
        extras.putBoolean(android.telecom.Connection.EXTRA_IS_RTT_AUDIO_PRESENT,
                profile.getRttAudioSpeech());
        onConnectionEvent(android.telecom.Connection.EVENT_RTT_AUDIO_INDICATION_CHANGED,
                extras);
    }

    public void setCurrentRttTextStream(android.telecom.Connection.RttTextStream rttTextStream) {
        synchronized (this) {
            mRttTextStream = rttTextStream;