diff options
| author | 2023-08-08 13:08:49 -0700 | |
|---|---|---|
| committer | 2023-08-08 13:08:49 -0700 | |
| commit | b7abf51cb910ce14549cc9ee22d08f75f6a522b4 (patch) | |
| tree | cd06a9b30386e0b0bc38653d913ebaa709f6a3dd /libs/hwui/FrameInfoVisualizer.cpp | |
| parent | 071eba94c2a4c840268159b469812db31e55cf8f (diff) | |
RemoteInputConnectionImpl should not call on IMM#isActive()
Historically RemoteInputConnectionImpl has been calling on
InputMethodManager#isActive()
to see if the InputConnection is considered to be active or inactive
when actually handling each incoming InputConnection operation.
However, InputMethodManager#isActive() is also known to be tricky
because it internally calls InputMethodManager#checkFocus(), which can
have non-trivial side effects.
With this CL, RemoteInputConnectionImpl keeps maintains its own
boolean state on whether #deactivate() is already called or not so
that it does not need to rely on IMM#isActive() any more.
For 99% cases there must be no observable behavior change, and for the
remaining 1% cases the new behavior should be more easily
understandable.
Bug: 291826769
Test: atest CtsInputMethodTestCases:InputConnectionHandlerTest#testInputConnectionSideEffect
Change-Id: I2fb9c549da19ff01e7cc3fd8bfc1f9c19aa0f0a8
Diffstat (limited to 'libs/hwui/FrameInfoVisualizer.cpp')
0 files changed, 0 insertions, 0 deletions