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

Skip to content
Commit 273c5220 authored by Hongwei Wang's avatar Hongwei Wang
Browse files

Use cached launcher shelf KCA before entering PiP

For entering PiP in button navigation mode, we would allow Launcher
shelf height change to update the destination bounds in the middle of
entering animation.

This works in most cases, but if the animation has progressed beyond a
certain point, such Launcher shelf height change would cause the
animation to suddenly change its moving direction, e.g. move up.

In this change, we used the cached launcher shelf height to calculate
the destination bounds, to make the animation independent from the
Launcher shelf height update timing.

Flag: EXEMPT bugfix
Video: http://recall/-/aaaaaabFQoRHlzixHdtY/fTeZwHHX3hGd6mRqSIjgp9
Bug: 326287104
Test: Enter PiP in button nav, both folded and unfolded
Test: atest --iteration 10  WMShellFlickerTestsPip1 -- --test-arg \
      com.android.tradefed.testtype.AndroidJUnitTest:instrumentation-arg\
      :filter-tests:="com.android.wm.shell.flicker.pip.\
      AutoEnterPipWithSourceRectHintTest#pipLayerMovesTowardsRightBottomCorner[ROTATION_0_3_BUTTON_NAV]"
Change-Id: I97f67824f9f153eba5bc34d090e7a12e4d634c03
parent 4a12a946
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment