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

Commit 80f1091c authored by Mady Mellor's avatar Mady Mellor
Browse files

Pass the overflow state in the initial update

Flag: com.android.wm.shell.enable_optional_bubble_overflow
Flag: com.android.wm.shell.enable_bubble_bar
Test: manual - have the bubbles in the overflow when a bubble is
               added to bubble bar for the first time
Bug: 334175587
Change-Id: If0b4ff1261fadf60f52e59ee27fdfb61a77b48be
parent 2c399676
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -174,6 +174,7 @@ public class BubbleData {
        BubbleBarUpdate getInitialState() {
            BubbleBarUpdate bubbleBarUpdate = BubbleBarUpdate.createInitialState();
            bubbleBarUpdate.shouldShowEducation = shouldShowEducation;
            bubbleBarUpdate.showOverflow = !overflowBubbles.isEmpty();
            for (int i = 0; i < bubbles.size(); i++) {
                bubbleBarUpdate.currentBubbleList.add(bubbles.get(i).asBubbleBarBubble());
            }