From 5391e14c3eacce921fa6526ddab9bed417a29d15 Mon Sep 17 00:00:00 2001 From: mpodolian Date: Mon, 16 Dec 2024 11:23:19 -0800 Subject: [PATCH] Added an onClick listener to the bubble bar. Previously, clicks were not handled because no listener was set on the bubble bar. Fixes: 383622825 Test: Manual. Ensure bubbles are on the home screen and set the navigation mode to 3-button navigation. Click on the collapsed bubble bar and observe the bar expanding. Flag: com.android.wm.shell.enable_bubble_bar Change-Id: I99e1c20e40a9dd9da97b68817734c8ca1f656baa --- .../launcher3/taskbar/bubbles/BubbleBarViewController.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarViewController.java b/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarViewController.java index dd1b0ca87e..8421c15a7f 100644 --- a/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarViewController.java +++ b/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarViewController.java @@ -183,6 +183,11 @@ public class BubbleBarViewController { if (!Flags.enableOptionalBubbleOverflow()) { showOverflow(true); } + if (!mBubbleStashController.isTransientTaskBar()) { + // TODO(b/380274085) for transient taskbar mode, the click is also handled by the input + // consumer. This check can be removed once b/380274085 is fixed. + mBarView.setOnClickListener(v -> setExpanded(!mBarView.isExpanded())); + } mBarView.addOnLayoutChangeListener( (v, left, top, right, bottom, oldLeft, oldTop, oldRight, oldBottom) -> { mTaskbarInsetsController.onTaskbarOrBubblebarWindowHeightOrInsetsChanged();