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

Commit 8c43cd5e authored by Tiger Huang's avatar Tiger Huang
Browse files

Update surface positions for animations earlier

When there is a new surface position of the InsetsSourceControl, the
leash position can updated either:

- during the insets animation (the surface position of the
  InsetsSourceControl used by the animation would be updated first), or
- via InsetsSourceConsumer#applyRequestedVisibilityAndPositionToControl
  if there is no running animation.

However, the surface position of the InsetsSourceControl used by the
animation was updated too late. If there is an animation running on the
InsetsAnimationThread (different from the main thread), it might update
the leash position based on the stale position.

This CL updates surface positions for animations before checking
InsetsController#hasSurfaceAnimation.

Fix: 408907769
Flag: EXEMPT bugfix
Test: atest CtsInputMethodTestCases:InputMethodServiceTest
Change-Id: If35ee24adc24d810087fa9be2943174093c0f733
parent e3b2dbbf
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