summaryrefslogtreecommitdiff
path: root/core/java/android/inputmethodservice/AbstractInputMethodService.java
diff options
context:
space:
mode:
authorYohei Yukawa <yukawa@google.com>2021-10-28 15:47:01 -0700
committerYohei Yukawa <yukawa@google.com>2021-10-28 15:47:01 -0700
commit5b848f27e47b75605e81d54420cddf85c79c88bb (patch)
treef44487a2e2489cf64d5497c79a845b07ef3ad847 /core/java/android/inputmethodservice/AbstractInputMethodService.java
parent40a525deafe702e4d5b82351e1bda84867952a80 (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