From e07699ae6a0e8dbf07d462d152aa8b71766b5244 Mon Sep 17 00:00:00 2001 From: Mady Mellor Date: Wed, 30 Oct 2024 12:30:14 -0700 Subject: [PATCH] Fix an issue where the overflow wouldn't show if the flag was disabled Flag: com.android.wm.shell.enable_bubble_bar Test: manual - check that optional overflow flag is off and get bubbles in bubble bar, overflow should be present Bug: 358304168 Change-Id: I1eb709003d4dcdde7ae465b837a2c68d40b1a828 --- .../launcher3/taskbar/bubbles/BubbleBarViewController.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarViewController.java b/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarViewController.java index 31b1ea0a19..fb2c6ea495 100644 --- a/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarViewController.java +++ b/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarViewController.java @@ -57,6 +57,7 @@ import com.android.launcher3.util.DisplayController; import com.android.launcher3.util.MultiPropertyFactory; import com.android.launcher3.util.MultiValueAlpha; import com.android.quickstep.SystemUiProxy; +import com.android.wm.shell.Flags; import com.android.wm.shell.shared.bubbles.BubbleBarLocation; import java.io.PrintWriter; @@ -177,6 +178,9 @@ public class BubbleBarViewController { mBubbleBarClickListener = v -> expandBubbleBar(); mBubbleDragController.setupBubbleBarView(mBarView); mOverflowBubble = bubbleControllers.bubbleCreator.createOverflow(mBarView); + if (!Flags.enableOptionalBubbleOverflow()) { + showOverflow(true); + } mBarView.setOnClickListener(mBubbleBarClickListener); mBarView.addOnLayoutChangeListener( (v, left, top, right, bottom, oldLeft, oldTop, oldRight, oldBottom) -> {