Merge "Animate bubble update notifications" into main

This commit is contained in:
Liran Binyamin
2024-05-16 13:13:57 +00:00
committed by Android (Google) Code Review
2 changed files with 19 additions and 19 deletions

View File

@@ -323,7 +323,6 @@ public class BubbleBarController extends IBubblesListener.Stub {
final boolean suppressAnimation =
update.initialState || mBubbleBarViewController.isHiddenForSysui();
BubbleBarItem previouslySelectedBubble = mSelectedBubble;
BubbleBarBubble bubbleToSelect = null;
if (!update.removedBubbles.isEmpty()) {
for (int i = 0; i < update.removedBubbles.size(); i++) {
@@ -379,6 +378,7 @@ public class BubbleBarController extends IBubblesListener.Stub {
BubbleBarBubble bb = mBubbles.get(update.updatedBubble.getKey());
// If we're not stashed, we're visible so animate
bb.getView().updateDotVisibility(!mBubbleStashController.isStashed() /* animate */);
mBubbleBarViewController.animateBubbleNotification(bb, /* isExpanding= */ false);
}
if (update.bubbleKeysInOrder != null && !update.bubbleKeysInOrder.isEmpty()) {
// Create the new list