Don't animate new bubble when already expanded

Flag: ACONFIG com.android.wm.shell.enable_bubble_bar DEVELOPMENT
Bug: 280605846
Test: manual
Change-Id: I2fe4eb1ad05cfe693630c3a4a8493fecba81965c
This commit is contained in:
Liran Binyamin
2024-04-25 09:58:17 -04:00
parent 191f4de96e
commit 4f35ee9968
@@ -373,7 +373,7 @@ public class BubbleBarViewController {
boolean isInApp = mTaskbarStashController.isInApp();
// only animate the new bubble if we're in an app and not auto expanding
if (b instanceof BubbleBarBubble && isInApp && !isExpanding) {
if (b instanceof BubbleBarBubble && isInApp && !isExpanding && !isExpanded()) {
mBubbleBarViewAnimator.animateBubbleInForStashed((BubbleBarBubble) b);
}
} else {