From 3c10ac11240051fcf082a31d07a9f31ea36ddb0e Mon Sep 17 00:00:00 2001 From: Lyn Han Date: Fri, 29 Jan 2021 20:17:31 -0600 Subject: [PATCH] Update badge visibility on expand and collapse Fixes: 178504795 Test: expand and collapse in portrait/landscape => badges update correctly Change-Id: I6364599a03fdd198a0cd22748bd512d453a40d83 --- .../src/com/android/wm/shell/bubbles/BubbleStackView.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleStackView.java b/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleStackView.java index fac368677d12d..7459b04cd4b8d 100644 --- a/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleStackView.java +++ b/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleStackView.java @@ -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 */); } /**