From bd446142ae64ed91cf67fbcaa91dce50dc093a27 Mon Sep 17 00:00:00 2001 From: Mady Mellor Date: Wed, 11 Sep 2024 10:21:55 -0700 Subject: [PATCH] Fix the overflow not being added sometimes The runnable to add the overflow was only being run when the view was animated (i.e. while expanded); not when it was collapsed. Flag: com.android.wm.shell.enable_bubble_bar Bug: 358304168 Test: manual - add more than 5 bubbles while collapsed Change-Id: Ibdea61eaf8ecb1d2e3f9ea4fced679b2826d3f9b --- .../com/android/launcher3/taskbar/bubbles/BubbleBarView.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarView.java b/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarView.java index 1dbf445647..14f6e3ab23 100644 --- a/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarView.java +++ b/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarView.java @@ -799,6 +799,9 @@ public class BubbleBarView extends FrameLayout { removeView(removedBubble); int index = addingOverflow ? getChildCount() : 0; addView(addedBubble, index, lp); + if (onEndRunnable != null) { + onEndRunnable.run(); + } return; } int index = addingOverflow ? getChildCount() : 0;