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

Commit 3321d72b authored by Hall Liu's avatar Hall Liu Committed by Gerrit Code Review
Browse files

Merge "Wire up the stopRtt API"

parents c39a1826 0cdbf555
Loading
Loading
Loading
Loading
+14 −2
Original line number Diff line number Diff line
@@ -981,14 +981,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
     *