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

Commit 4b747576 authored by Mady Mellor's avatar Mady Mellor Committed by Automerger Merge Worker
Browse files

Fix x translation for switch animation to overflow am: b088bd9c am:...

Fix x translation for switch animation to overflow am: b088bd9c am: db0ba17e am: a211d5d5 am: 496009bb

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11842162

Change-Id: Idc64674161dfa387a6fcb84b1c9c4d1288fa2d26
parents 0ab4c289 496009bb
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1887,9 +1887,11 @@ public class BubbleStackView extends FrameLayout
                .withEndActions(this::releaseAnimatingOutBubbleBuffer)
                .start();

        boolean isOverflow = mExpandedBubble != null
                && mExpandedBubble.getKey().equals(BubbleOverflow.KEY);
        float expandingFromBubbleDestinationX =
                mExpandedAnimationController.getBubbleLeft(
                        mBubbleData.getBubbles().indexOf(mExpandedBubble));
                mExpandedAnimationController.getBubbleLeft(isOverflow ? getBubbleCount()
                        : mBubbleData.getBubbles().indexOf(mExpandedBubble));

        mExpandedViewContainer.setAlpha(1f);
        mExpandedViewContainer.setVisibility(View.VISIBLE);