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

Commit ab2405d8 authored by Ivan Tkachenko's avatar Ivan Tkachenko
Browse files

Fix Bubbles fly in initial position

* Update Bubble initial position before fly in animation.

Bug: 300267577
Flag: not needed
Test: manual
Change-Id: I6fbcd165e4d57dd06012f5c158aa2287afea69c2
parent c130813d
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()));