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

Commit baece8c6 authored by Hall Liu's avatar Hall Liu
Browse files

Fix RTT property setting

Don't start the RTT text reader until the IMS stack gives us a call
profile with RTT set to on.

Bug: 73832960
Test: manual
Change-Id: Ic85d16f602140d34c9680c3a1cb33e01b5cf02c7
parent 2b243558
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -2753,10 +2753,6 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall {
            ImsPhoneConnection conn = findConnection(imsCall);
            if (conn != null) {
                conn.onRttModifyResponseReceived(status);
                if (status ==
                        android.telecom.Connection.RttModifyStatus.SESSION_MODIFY_REQUEST_SUCCESS) {
                    conn.startRttTextProcessing();
                }
            }
        }

+2 −3
Original line number Diff line number Diff line
@@ -33,12 +33,12 @@ import android.telephony.DisconnectCause;
import android.telephony.PhoneNumberUtils;
import android.telephony.Rlog;
import android.telephony.ServiceState;
import android.telephony.ims.ImsCallProfile;
import android.telephony.ims.ImsStreamMediaProfile;
import android.text.TextUtils;

import com.android.ims.ImsCall;
import android.telephony.ims.ImsCallProfile;
import com.android.ims.ImsException;
import android.telephony.ims.ImsStreamMediaProfile;
import com.android.ims.internal.ImsVideoCallProviderWrapper;
import com.android.internal.telephony.CallStateException;
import com.android.internal.telephony.Connection;
@@ -985,7 +985,6 @@ public class ImsPhoneConnection extends Connection implements
        imsCall.sendRttModifyResponse(accept);
        if (accept) {
            setCurrentRttTextStream(textStream);
            startRttTextProcessing();
        } else {
            Rlog.e(LOG_TAG, "sendRttModifyResponse: foreground call has no connections");
        }