From 8f9c2cc0209e90e8539211c5bb0ac3aeebd773ca Mon Sep 17 00:00:00 2001 From: Liran Binyamin Date: Fri, 8 Nov 2024 14:26:31 -0500 Subject: [PATCH] Animate the bubble notification in overview Flag: com.android.wm.shell.enable_bubble_bar Fixes: 378095516 Test: manual - swipe to overview - send bubble notification - observe bubble animation Change-Id: I9e52f1f7c7ddcc19b075af662d79ee9327b89fdb --- .../launcher3/taskbar/bubbles/BubbleBarViewController.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarViewController.java b/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarViewController.java index 96fadf7a0e..6ab78be58c 100644 --- a/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarViewController.java +++ b/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarViewController.java @@ -893,9 +893,10 @@ public class BubbleBarViewController { 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; }