summaryrefslogtreecommitdiff
path: root/api/api_test.go
diff options
context:
space:
mode:
author Linnan Li <lilinnan@xiaomi.corp-partner.google.com> 2024-07-31 21:57:01 +0000
committer Justin Ghan <justinghan@google.com> 2024-07-31 22:01:09 +0000
commit341bd2b47e47b408aa355adb9327526a93bd19c9 (patch)
tree474258255cbf4bf287343277456fa542353d71d3 /api/api_test.go
parent9aa05fed2b87a5bbb4a2f93df1c9dfebd1f34727 (diff)
Notify focus view to HandwritingInitiator after inputType changes.
Currently, after a View or window obtains focus, we notify the HandwritingInitiator. There is a necessary condition that `onCheckIsTextEditor` must pass its check. This leads to a situation where if the View doesn't pass the `onCheckIsTextEditor` check when it initially gains focus, even if the check is passed later on, it cannot notify again because there's no change in focus. Here, we try to address this issue by re-notifying the HandwritingInitiator of the focus event when the `inputType` changes. Bug: 353472560 Test: atest StylusHandwritingTest Flag: android.view.inputmethod.initiation_without_input_connection Signed-off-by: Linnan Li <lilinnan@xiaomi.corp-partner.google.com> (cherry picked from https://partner-android-review.googlesource.com/q/commit:743573de8cb589b872c8c86db39a6d03693fe367) Merged-In: I6403bc6471bb5db1fa00a576d916a24114992b5d Change-Id: I6403bc6471bb5db1fa00a576d916a24114992b5d
Diffstat (limited to 'api/api_test.go')
0 files changed, 0 insertions, 0 deletions