Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8025c41f authored by Yohei Yukawa's avatar Yohei Yukawa Committed by Android Build Coastguard Worker
Browse files

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
      3f733cc7

Bug: 286016109
Test: atest CtsInputMethodTestCases:FocusHandlingTest#testOnCheckIsTextEditorRunOnUIThreadWithInputMethodManagerIsActive
(cherry picked from commit b9eecc6b)
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:e92f5e8c2bd89a726cfbcd27e3e5cf47553011e6)
Merged-In: I015603c1b33ecdf4a4f5d5be5d85756a3b2b1615
Change-Id: I015603c1b33ecdf4a4f5d5be5d85756a3b2b1615
parent 865d21d3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment