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
Loading
Please register or sign in to comment