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

Commit 0cdbf555 authored by Hall Liu's avatar Hall Liu
Browse files

Wire up the stopRtt API

Connect the implementation of the onStopRtt API in Connection to the one
in the IMS stack.

Bug: 116671810
Test: manual
Change-Id: I8aff694f17a281fee6de6f863f70031722b80f56
parent 6735c802
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
     *