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

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

Merge "Wire up the stopRtt API" am: 3321d72b

am: 77671750

Change-Id: I9ff0b6967d937dc6d102950514dded05a5dcf69f
parents 60afb6cc 77671750
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
     *