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

Commit 1dea65a1 authored by Ats Jenk's avatar Ats Jenk
Browse files

Skip expanded view layout updates while animating

Do not modify bubble bar expanded view layout properties while it is
animating.
This was causing problems when converting a task to a bubble.
After ag/31701472 we immediately start the animation to convert a task
to bubble. And have launcher show the bubble bar in parallel.
After launcher has shown the bubble bar, it will attempt to update the
expanded view with the latest bubble bar top coordinate.
If this happens while the convert to bubble animation is running, it
will interrupt the animation progress.
Previously it was not a problem as we were waiting for launcher to
complete its work. Before starting the convert to bubble animation.
Added a check to not update the bubble bar expanded view layout while an
animation is playing.
There is still a jump-cut at the end of animation where the size of the
expanded view gets adjusted. That will be addressed as part of animation
improvements.

Bug: 396449031
Test: atest WMShellMultivalentTestsOnDevice:com.android.wm.shell.bubbles.bar.BubbleBarLayerViewTest
Test: atest WMShellRobolectricTests:com.android.wm.shell.bubbles.bar.BubbleBarLayerViewTest
Flag: com.android.wm.shell.enable_bubble_bar
Change-Id: Ibacd56459de0b7fc0897bacc7a00f927c4590e91
parent 0f6a9165
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