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

Skip to content
Commit 737c7915 authored by Ming-Shin Lu's avatar Ming-Shin Lu
Browse files

Fix WIC#hide(ime()) no-op after WIC#show(ime()) in Activity#onCreate

In InsetsController#hide, ensure to request hide IME with calling
ImeInsetsSurceConsumer#requestHide, in case the pending visible
request will triggger show after setControl.

Also, we modified PendingControlRequest to be able to remove from the
show insets type when it has being requested invisible by
InsetsController#hide(type), if the removed type contains the IME then
we handle the pending show control request for other types since it
is no longer needed to wait the IME ready to show.

Also, make sure set mIsRequestedVisibleAwaitingControl as false when
ImeInsetsSourceConsumer#notifyHidden to avoid the above pending visible
request happens.

Bug: 248456059
Test: atest CtsInputMethodTestCases
Test: atest InputMethodStressTest:ImeOpenCloseStressTest
Change-Id: Id3aebca3348888826bc5d3c6694e94cddb80b4d4
parent 0b6a4209
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