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

Skip to content
Commit 8c6f03fa authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Do not hide IME when waiting for drawn by toggling screen

This removed outdated logic of [1].
It was needed because the IME container was put on top of display.
[1]: Ife93bdfde8ba2914930497356c0e16ebd629c507

Since DisplayArea is introduced, the corresponding ImePlaceholder
will never have higher z-order then AOD unless itself is the IME
target. Also since insets leash is introduced, the leash surface
will be hidden if the control target is not visible. So the logic
is no longer needed.

Otherwise if WindowState#hide is called for IME, it will clear
visibility flag and cause WindowState#isGoneForLayout to return
true. Then IME won't receive new size in time when the display is
resizing with turning off/on screen.

Bug: 289995722
Test: Fold/unfold device when "Stay unlocked on fold" is enabled
      and the current app is showing IME. The IME won't show a
      few frames in old size.
Change-Id: I697e1ec679be37388eefb0fa265d9e9a084458cf
parent 7f052ad3
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