Interrupt bubble animation on stash change
This change handles cancelling the currently running bubble animation when the stash state is changing. Demo - http://recall/-/bJtug1HhvXkkeA4MQvIaiP/4jnBgnFaIPez6m7fVLSlf Flag: ACONFIG com.android.wm.shell.enable_bubble_bar DEVELOPMENT Bug: 280605846 Test: atest BubbleBarViewAnimatorTest Change-Id: I34628f8ad741228dd21285ad66e45ef2909fbdab
This commit is contained in:
@@ -172,6 +172,13 @@ public class BubbleBarViewController {
|
||||
}
|
||||
}
|
||||
|
||||
/** Notifies that the stash state is changing. */
|
||||
public void onStashStateChanging() {
|
||||
if (isAnimatingNewBubble()) {
|
||||
mBubbleBarViewAnimator.onStashStateChangingWhileAnimating();
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// The below animators are exposed to BubbleStashController so it can manage the stashing
|
||||
// animation.
|
||||
|
||||
Reference in New Issue
Block a user