diff options
author | wangqi <wangqi@google.com> | 2018-02-23 18:01:27 -0800 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-02-23 18:25:15 -0800 |
commit | 1c1e4c7caa0edd1f8f9aa951c6468c1d653ee281 (patch) | |
tree | f665bdc8635f3208c20c93540e3b3d0913d7b9ce /java/com/android/incallui/rtt/impl/RttChatFragment.java | |
parent | 54c21601d950346278018738de6ed03e3d933921 (diff) |
Fix bugs of RTT chat.
1. send bubble break characters to remote
2. correctly handle text replacement
Bug: 67596257
Test: RttChatMessageTest
PiperOrigin-RevId: 186850402
Change-Id: I0aebb0f4315a021da1463d7903d28e912918efca
Diffstat (limited to 'java/com/android/incallui/rtt/impl/RttChatFragment.java')
-rw-r--r-- | java/com/android/incallui/rtt/impl/RttChatFragment.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/java/com/android/incallui/rtt/impl/RttChatFragment.java b/java/com/android/incallui/rtt/impl/RttChatFragment.java index a33029501..2c8de09f4 100644 --- a/java/com/android/incallui/rtt/impl/RttChatFragment.java +++ b/java/com/android/incallui/rtt/impl/RttChatFragment.java @@ -56,6 +56,7 @@ import com.android.incallui.incall.protocol.PrimaryCallState; import com.android.incallui.incall.protocol.PrimaryInfo; import com.android.incallui.incall.protocol.SecondaryInfo; import com.android.incallui.rtt.impl.RttChatAdapter.MessageListener; +import com.android.incallui.rtt.protocol.Constants; import com.android.incallui.rtt.protocol.RttCallScreen; import com.android.incallui.rtt.protocol.RttCallScreenDelegate; import com.android.incallui.rtt.protocol.RttCallScreenDelegateFactory; @@ -162,6 +163,7 @@ public class RttChatFragment extends Fragment isClearingInput = true; editText.setText(""); isClearingInput = false; + rttCallScreenDelegate.onLocalMessage(Constants.BUBBLE_BREAKER); }); submitButton.setEnabled(false); endCallButton = view.findViewById(R.id.rtt_end_call_button); |