Fix x translation for switch animation to overflow am: b088bd9c28
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11842162 Change-Id: Ic869fe2c50066a3918e821f79888e59fd8f5705b
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user