Loading src/java/com/android/internal/telephony/imsphone/ImsPhoneConnection.java +18 −8 Original line number Diff line number Diff line Loading @@ -973,9 +973,12 @@ public class ImsPhoneConnection extends Connection implements } public void sendRttModifyRequest(android.telecom.Connection.RttTextStream textStream) { ImsCall imsCall = getImsCall(); if (imsCall != null) { getImsCall().sendRttModifyRequest(); setCurrentRttTextStream(textStream); } } /** * Sends the user's response to a remotely-issued RTT upgrade request Loading @@ -987,6 +990,7 @@ public class ImsPhoneConnection extends Connection implements boolean accept = textStream != null; ImsCall imsCall = getImsCall(); if (imsCall != null) { imsCall.sendRttModifyResponse(accept); if (accept) { setCurrentRttTextStream(textStream); Loading @@ -994,6 +998,7 @@ public class ImsPhoneConnection extends Connection implements Rlog.e(LOG_TAG, "sendRttModifyResponse: foreground call has no connections"); } } } public void onRttMessageReceived(String message) { synchronized (this) { Loading Loading @@ -1046,7 +1051,12 @@ public class ImsPhoneConnection extends Connection implements // Make sure to synchronize on ImsPhoneConnection.this before calling. private void createRttTextHandler() { mRttTextHandler = new ImsRttTextHandler(Looper.getMainLooper(), (message) -> getImsCall().sendRttMessage(message)); (message) -> { ImsCall imsCall = getImsCall(); if (imsCall != null) { imsCall.sendRttMessage(message); } }); mRttTextHandler.initialize(mRttTextStream); } Loading Loading
src/java/com/android/internal/telephony/imsphone/ImsPhoneConnection.java +18 −8 Original line number Diff line number Diff line Loading @@ -973,9 +973,12 @@ public class ImsPhoneConnection extends Connection implements } public void sendRttModifyRequest(android.telecom.Connection.RttTextStream textStream) { ImsCall imsCall = getImsCall(); if (imsCall != null) { getImsCall().sendRttModifyRequest(); setCurrentRttTextStream(textStream); } } /** * Sends the user's response to a remotely-issued RTT upgrade request Loading @@ -987,6 +990,7 @@ public class ImsPhoneConnection extends Connection implements boolean accept = textStream != null; ImsCall imsCall = getImsCall(); if (imsCall != null) { imsCall.sendRttModifyResponse(accept); if (accept) { setCurrentRttTextStream(textStream); Loading @@ -994,6 +998,7 @@ public class ImsPhoneConnection extends Connection implements Rlog.e(LOG_TAG, "sendRttModifyResponse: foreground call has no connections"); } } } public void onRttMessageReceived(String message) { synchronized (this) { Loading Loading @@ -1046,7 +1051,12 @@ public class ImsPhoneConnection extends Connection implements // Make sure to synchronize on ImsPhoneConnection.this before calling. private void createRttTextHandler() { mRttTextHandler = new ImsRttTextHandler(Looper.getMainLooper(), (message) -> getImsCall().sendRttMessage(message)); (message) -> { ImsCall imsCall = getImsCall(); if (imsCall != null) { imsCall.sendRttMessage(message); } }); mRttTextHandler.initialize(mRttTextStream); } Loading