Merge "Animate the bubble notification in overview" into main
diff --git a/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarViewController.java b/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarViewController.java
index 776a98e..2dddb16 100644
--- a/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarViewController.java
+++ b/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarViewController.java
@@ -895,9 +895,10 @@
mBubbleBarViewAnimator.animateToInitialState(bubble, isInApp, isExpanding);
return;
}
- boolean persistentTaskbarOrOnHome = mBubbleStashController.isBubblesShowingOnHome()
+ // if we're not stashed or we're in persistent taskbar, animate for collapsed state.
+ boolean animateForCollapsed = !mBubbleStashController.isStashed()
|| !mBubbleStashController.isTransientTaskBar();
- if (persistentTaskbarOrOnHome) {
+ if (animateForCollapsed) {
mBubbleBarViewAnimator.animateBubbleBarForCollapsed(bubble, isExpanding);
return;
}