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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user