diff options
| author | Yohei Yukawa <yukawa@google.com> | 2021-10-28 15:47:01 -0700 |
|---|---|---|
| committer | Yohei Yukawa <yukawa@google.com> | 2021-10-28 15:47:01 -0700 |
| commit | 5b848f27e47b75605e81d54420cddf85c79c88bb (patch) | |
| tree | f44487a2e2489cf64d5497c79a845b07ef3ad847 /core/java/android/inputmethodservice/AbstractInputMethodService.java | |
| parent | 40a525deafe702e4d5b82351e1bda84867952a80 (diff) | |
Implement InputConnection task cancellation
This CL introduces the task cancellation mechanism into
RemoteInputConnection and RemoteInputConnectionImpl.
The code idea is to ignore InputConnection tasks if the session IDs do
not match. By incrementing the session ID upon every "interruption",
we can effectively cancel any pending events issued before the
"interruption" happened.
Note that even with this CL RemoteInputConnection and
RemoteInputConnectionImpl still uses "0" as the session ID.
Hence there should be no user observable behavior change yet.
Fix: 203086369
Test: presubmit
Change-Id: I383c3958d2ac1a8d217706509fa12a92b381bbb3
Diffstat (limited to 'core/java/android/inputmethodservice/AbstractInputMethodService.java')
0 files changed, 0 insertions, 0 deletions
