summaryrefslogtreecommitdiff
path: root/api/coverage/tools
diff options
context:
space:
mode:
author Felix Stern <fstern@google.com> 2024-10-23 14:48:50 +0000
committer Felix Stern <fstern@google.com> 2024-10-23 14:52:10 +0000
commit8cd5cb68e195acb7ef34e8d1852fcc6cfd388f2d (patch)
tree71b88ec892101567655ad8c59f8a63b5773ac3ed /api/coverage/tools
parent7875655e9f772f175bc57799a88917101571649a (diff)
Fix a race when an editText was removed and added immediately again
In some rare cases, the hide request that was triggered by removing a view was applied in InsetsController too late. A following show request could have been applied before, resulting in the IME not being shown. This was caused by InputMethodManager, as some methods (e.g., closeCurrentInput()) did not call into InsetsController#hide, but into IMMS. This CL fixes this race condition by calling directly into InsetsController#hide, instead of using IInputMethodManagerGlobalInvoker. Test: atest WindowInsetsControllerTests#testShowIme_immediatelyAfterDetachAndReattach --rerun-until-failure 100 Fix: 373971329 Flag: android.view.inputmethod.refactor_insets_controller Change-Id: Ib2dc444d3d08b23e36df1c2c72e630115804f80f
Diffstat (limited to 'api/coverage/tools')
0 files changed, 0 insertions, 0 deletions