diff options
| author | 2023-06-12 16:43:13 -0700 | |
|---|---|---|
| committer | 2023-06-26 14:42:04 +0000 | |
| commit | f509fe26a4dda8c3689410d65f15b4b6d092fa76 (patch) | |
| tree | 03fe00bd417fdc2986cca45f089f3cd091847360 /libs/androidfw/StringPool.cpp | |
| parent | 848b73fe14cedf81a2e43c5c55fe88cc6dd6aa18 (diff) | |
Make sure to call back View#onCheckIsTextEditor() on the UI thread
Calling back View#onCheckIsTextEditor() from a non-UI thread is
a well known type of bugs that we have met in the past [1].
This time it turns out that it can still happen when
InputMethodManager#isActive() gets called on a background thread.
This CL should address such a remaining case.
[1]: I098df41f935438bf1889fb030c7a3e7a0645a168
3f733cc7efa6342a849960fdcf1a4cf28d36bae5
Bug: 286016109
Test: atest CtsInputMethodTestCases:FocusHandlingTest#testOnCheckIsTextEditorRunOnUIThreadWithInputMethodManagerIsActive
Change-Id: I015603c1b33ecdf4a4f5d5be5d85756a3b2b1615
Merged-In: I015603c1b33ecdf4a4f5d5be5d85756a3b2b1615
(cherry picked from commit b9eecc6bc883824c148cff901fbcb0ec2ebfa6c0)
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions