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

Commit 663698cf authored by Ivan Tkachenko's avatar Ivan Tkachenko Committed by Android (Google) Code Review
Browse files

Merge "Fix Bubbles fly in initial position" into main

parents 52e41896 ab2405d8
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -1784,13 +1784,14 @@ public class BubbleStackView extends FrameLayout
            mStackOnLeftOrWillBe = mPositioner.isStackOnLeft(startPosition);
            mStackAnimationController.setStackPosition(startPosition);
            mExpandedAnimationController.setCollapsePoint(startPosition);
            // Set the translation x so that this bubble will animate in from the same side they
            // expand / collapse on.
            bubble.getIconView().setTranslationX(startPosition.x);
        } else if (firstBubble) {
            mStackOnLeftOrWillBe = mStackAnimationController.isStackOnLeftSide();
        }

        // Set the view translation x so that this bubble will animate in from the same side they
        // expand / collapse on.
        bubble.getIconView().setTranslationX(mStackAnimationController.getStackPosition().x);

        mBubbleContainer.addView(bubble.getIconView(), 0,
                new FrameLayout.LayoutParams(mPositioner.getBubbleSize(),
                        mPositioner.getBubbleSize()));