commit | 6b4f264f40a2b3386c4cd1d8134a8d821be94052 | [log] [tgz] |
---|---|---|
author | wangqi <wangqi@google.com> | Thu Mar 08 14:24:06 2018 -0800 |
committer | Copybara-Service <copybara-piper@google.com> | Thu Mar 08 17:04:17 2018 -0800 |
tree | 7537651b60ee929180a9d93233671e3e49b9ba05 | |
parent | db30a13b91ff62021a3a14b30c6b2c1b2f1d5e3d [diff] |
Optimize characters sent to remote party for RTT chat. Instead of using things provided by Android of onTextChanged, we compare the text in EditText with the text in bubble before the change and compute the delta string need to send to remote party. This way we could minimize characters sent thus reduce latency. Bug: 67596257 Test: RttChatMessageTest PiperOrigin-RevId: 188389325 Change-Id: I3023b484c32b2369ca8720104da74cf6906bb46e