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

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

Merge "Wire up the stopRtt API"

am: 3321d72b

Change-Id: I5d834bcafcb8cc002784152c3f5bf2bedd334fc3
parents 4d6baba7 3321d72b
Loading
Loading
Loading
Loading
+14 −2
Original line number Diff line number Diff line
@@ -984,14 +984,26 @@ public class ImsPhoneConnection extends Connection implements
        setVideoState(newVideoState);
    }

    public void sendRttModifyRequest(android.telecom.Connection.RttTextStream textStream) {

    /**
     * Send a RTT upgrade request to the remote party.
     * @param textStream RTT text stream to use
     */
    public void startRtt(android.telecom.Connection.RttTextStream textStream) {
        ImsCall imsCall = getImsCall();
        if (imsCall != null) {
            getImsCall().sendRttModifyRequest();
            getImsCall().sendRttModifyRequest(true);
            setCurrentRttTextStream(textStream);
        }
    }

    /**
     * Terminate the current RTT session.
     */
    public void stopRtt() {
        getImsCall().sendRttModifyRequest(false);
    }

    /**
     * Sends the user's response to a remotely-issued RTT upgrade request
     *