Solved flicker issue when expanding a bubble for the second time.
Bug: 130442248
Test: Manual. Use BubbleTest app, record a video of the transition.
Change-Id: Ic098f842a048ca55f3c7577e8dbb190135e655f3
diff --git a/packages/SystemUI/src/com/android/systemui/bubbles/BubbleStackView.java b/packages/SystemUI/src/com/android/systemui/bubbles/BubbleStackView.java
index abd4229..67fd4b6 100644
--- a/packages/SystemUI/src/com/android/systemui/bubbles/BubbleStackView.java
+++ b/packages/SystemUI/src/com/android/systemui/bubbles/BubbleStackView.java
@@ -913,6 +913,7 @@
private void animateCollapse() {
mIsExpanded = false;
+ final Bubble previouslySelected = mExpandedBubble;
beforeExpandedViewAnimation();
mBubbleContainer.cancelAllAnimations();
@@ -922,6 +923,7 @@
() -> {
mBubbleContainer.setActiveController(mStackAnimationController);
afterExpandedViewAnimation();
+ previouslySelected.setContentVisibility(false);
});
mExpandedViewXAnim.animateToFinalPosition(getCollapsedX());