summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorMing-Shin Lu <lumark@google.com>2020-04-30 22:20:10 +0800
committerMing-Shin Lu <lumark@google.com>2020-05-09 00:36:27 +0800
commita4cb6f3a45643102b1b494b7f4945bbc85c28629 (patch)
tree1e31d14b25cfe196c269112e9f9ae70e61198bfc /tools/aapt2/java/JavaClassGenerator.cpp
parent672ebfc2920eefc17c24b3678afb59ee4303c8a0 (diff)
Fix focus cleared and password keyboard shown during IME switching
When IME switches, InputMethodService will be rebound and re-initialize input view, since it needs take time to update the layout, if the insets calculation happens during the layout, the givenContentInsets are not ready yet during this phases, then the insets size will abnormal and may cause the IME target layout will be resized to zero height after applied insets change. If the view layout is focused, system will clear such 0-sized view focus, since user can't easily aware and it's not safe to focus on invisible view (refer CL[1]), then after IME switches, input connection will break because the view focus lost. Make sure to set the valid IME insets sources frame when the server side visible set as true in InsetSourceProvider. [1]: 5db64eb1da42118af65ceba1d0612fd82c294608 Fix: 153612876 Test: atest InsetsSourceProviderTest#testUpdateSourceFrameForIme Test: atest InsetsSourceTest InsetsStateTest InsetsSourceProviderTest \ InsetsControllerTest InsetsStateControllerTest \ InsetsSourceConsumerTest Test: atest ImeInsetsControllerTest Change-Id: Id2c482e112c1d73cf7d5b3ba5e1a2d5775f47298
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions