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
This commit is contained in:
Mady Mellor
2024-09-11 10:21:55 -07:00
parent d72a0400eb
commit bd446142ae
@@ -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;