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

Commit 3c10ac11 authored by Lyn Han's avatar Lyn Han
Browse files

Update badge visibility on expand and collapse

Fixes: 178504795
Test: expand and collapse in portrait/landscape
      => badges update correctly
Change-Id: I6364599a03fdd198a0cd22748bd512d453a40d83
parent 8f046c76
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1659,6 +1659,7 @@ public class BubbleStackView extends FrameLayout
        }
        beforeExpandedViewAnimation();

        updateBadgesAndZOrder(false /* setBadgeForCollapsedStack */);
        mBubbleContainer.setActiveController(mExpandedAnimationController);
        updateOverflowVisibility();
        updatePointerPosition();
@@ -1870,7 +1871,7 @@ public class BubbleStackView extends FrameLayout
                                mExpandedBubble));
                    }
                    updateOverflowVisibility();

                    updateBadgesAndZOrder(true /* setBadgeForCollapsedStack */);
                    afterExpandedViewAnimation();
                    if (previouslySelected != null) {
                        previouslySelected.setContentVisibility(false);
@@ -2618,7 +2619,6 @@ public class BubbleStackView extends FrameLayout
        }

        mStackOnLeftOrWillBe = mStackAnimationController.isStackOnLeftSide();
        updateBadgesAndZOrder(false /* setBadgeForCollapsedStack */);
    }

    /**