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

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

Merge "IMS: Propagate media profile changed message"

am: 253824fb

Change-Id: Iaa3044c2cf5e8f2ee843e0fb9dbc0172d4121de5
parents 9b56f19e 253824fb
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -2735,6 +2735,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;