Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 26e6b76d authored by Lyn Han's avatar Lyn Han Committed by Android (Google) Code Review
Browse files

Merge "Reorder bubbles without animations on collapse" into sc-dev

parents 1f212657 95089b6d
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -1539,19 +1539,16 @@ public class BubbleStackView extends FrameLayout
     * Update bubble order and pointer position.
     */
    public void updateBubbleOrder(List<Bubble> bubbles) {
        if (isExpansionAnimating()) {
            return;
        }
        final Runnable reorder = () -> {
            for (int i = 0; i < bubbles.size(); i++) {
                Bubble bubble = bubbles.get(i);
                mBubbleContainer.reorderView(bubble.getIconView(), i);
            }
        };
        if (mIsExpanded) {
        if (mIsExpanded || isExpansionAnimating()) {
            reorder.run();
            updateBadgesAndZOrder(false /* setBadgeForCollapsedStack */);
        } else {
        } else if (!isExpansionAnimating()) {
            List<View> bubbleViews = bubbles.stream()
                    .map(b -> b.getIconView()).collect(Collectors.toList());
            mStackAnimationController.animateReorder(bubbleViews, reorder);