Hide bubble dot after flyout init

After the flyout initializes to its collapsed state, hide the
notification dot so that the flyout and dot will seem visually as
one.

Flag: com.android.wm.shell.enable_bubble_bar
Fixes: 376276297
Test: atest BubbleBarFlyoutControllerTest
Change-Id: Ie581ddcd56a26844526f80b2169639c1a7d87500
This commit is contained in:
Liran Binyamin committed 2024-10-31 15:56:19 -04:00
1 parent 0242d124c2
commit 0e8093ae92
5 files changed
+45 -33

No files matched your search

@@ -872,9 +872,14 @@ public class BubbleBarViewController {
/** Animates the bubble bar to notify the user about a bubble change. */
public void animateBubbleNotification(BubbleBarBubble bubble, boolean isExpanding,
boolean isUpdate) {
// if we're expanded, don't animate the bubble bar. just show the notification dot.
// if we're not already animating another bubble, update the dot visibility. otherwise the
// the dot will be handled as part of the animation.
if (!mBubbleBarViewAnimator.isAnimating()) {
bubble.getView().updateDotVisibility(
/* animate= */ !mBubbleStashController.isStashed());
}
// if we're expanded, don't animate the bubble bar.
if (isExpanded()) {
bubble.getView().updateDotVisibility(/* animate= */ true);
return;
}
boolean isInApp = mTaskbarStashController.isInApp();