Update code guarded by bubble anything flag to use the helper method
Also adds a dependency on shared shell lib so launcher can use this.
Flag: com.android.wm.shell.enable_create_any_bubble
Test: manual - enable the create flag and check that bubble anything still
works; same with bubble anything flag
Bug: 389737359
Change-Id: I18322512c9d9883ee5cf473b72df565adea85879
This commit is contained in:
@@ -56,6 +56,7 @@ import com.android.launcher3.util.SplitConfigurationOptions.SplitPositionOption;
|
||||
import com.android.launcher3.views.ActivityContext;
|
||||
import com.android.quickstep.SystemUiProxy;
|
||||
import com.android.quickstep.util.LogUtils;
|
||||
import com.android.wm.shell.shared.bubbles.BubbleAnythingFlagHelper;
|
||||
import com.android.wm.shell.shared.desktopmode.DesktopModeStatus;
|
||||
|
||||
import java.io.PrintWriter;
|
||||
@@ -219,7 +220,7 @@ public class TaskbarPopupController implements TaskbarControllers.LoggableTaskba
|
||||
.getAreDesktopTasksVisibleAndNotInOverview()) {
|
||||
shortcuts.addAll(mControllers.uiController.getSplitMenuOptions().toList());
|
||||
}
|
||||
if (com.android.wm.shell.Flags.enableBubbleAnything()) {
|
||||
if (BubbleAnythingFlagHelper.enableCreateAnyBubble()) {
|
||||
shortcuts.add(BUBBLE);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user