Loading quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarController.java +1 −1 Original line number Diff line number Diff line Loading @@ -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++) { Loading Loading @@ -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 Loading quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarViewController.java +18 −18 Original line number Diff line number Diff line Loading @@ -414,14 +414,17 @@ public class BubbleBarViewController { b.getView().setOnClickListener(mBubbleClickListener); mBubbleDragController.setupBubbleView(b.getView()); if (suppressAnimation) { if (suppressAnimation || !(b instanceof BubbleBarBubble bubble)) { return; } if (!(b instanceof BubbleBarBubble bubble)) { return; animateBubbleNotification(bubble, isExpanding); } else { Log.w(TAG, "addBubble, bubble was null!"); } } /** Animates the bubble bar to notify the user about a bubble change. */ public void animateBubbleNotification(BubbleBarBubble bubble, boolean isExpanding) { boolean isInApp = mTaskbarStashController.isInApp(); // if this is the first bubble, animate to the initial state. one bubble is the overflow // so check for at most 2 children. Loading @@ -434,9 +437,6 @@ public class BubbleBarViewController { if (isInApp && !isExpanding && !isExpanded()) { mBubbleBarViewAnimator.animateBubbleInForStashed(bubble); } } else { Log.w(TAG, "addBubble, bubble was null!"); } } /** Loading Loading
quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarController.java +1 −1 Original line number Diff line number Diff line Loading @@ -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++) { Loading Loading @@ -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 Loading
quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarViewController.java +18 −18 Original line number Diff line number Diff line Loading @@ -414,14 +414,17 @@ public class BubbleBarViewController { b.getView().setOnClickListener(mBubbleClickListener); mBubbleDragController.setupBubbleView(b.getView()); if (suppressAnimation) { if (suppressAnimation || !(b instanceof BubbleBarBubble bubble)) { return; } if (!(b instanceof BubbleBarBubble bubble)) { return; animateBubbleNotification(bubble, isExpanding); } else { Log.w(TAG, "addBubble, bubble was null!"); } } /** Animates the bubble bar to notify the user about a bubble change. */ public void animateBubbleNotification(BubbleBarBubble bubble, boolean isExpanding) { boolean isInApp = mTaskbarStashController.isInApp(); // if this is the first bubble, animate to the initial state. one bubble is the overflow // so check for at most 2 children. Loading @@ -434,9 +437,6 @@ public class BubbleBarViewController { if (isInApp && !isExpanding && !isExpanded()) { mBubbleBarViewAnimator.animateBubbleInForStashed(bubble); } } else { Log.w(TAG, "addBubble, bubble was null!"); } } /** Loading