Loading
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