From 58a6bbac4aba73c548f33857c097ced2914aa7ff Mon Sep 17 00:00:00 2001 From: Mady Mellor Date: Tue, 18 Jun 2024 16:43:32 -0700 Subject: [PATCH] Update bubble bar overflow to have a unique resId This allows the overflow to be tested properly in end-to-end tests. Flag: com.android.wm.shell.enable_bubble_bar Test: atest OverflowBubbleTest (with other CL) Bug: 347312208 Change-Id: Ice969434f9c40602c4b2d1a5baf6ba0509534a56 --- .../taskbar/bubbles/BubbleBarController.java | 2 +- res/layout/bubble_bar_overflow_button.xml | 21 +++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 res/layout/bubble_bar_overflow_button.xml diff --git a/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarController.java b/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarController.java index 028df34c73..15e4578d7e 100644 --- a/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarController.java +++ b/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarController.java @@ -600,7 +600,7 @@ public class BubbleBarController extends IBubblesListener.Stub { Bitmap bitmap = createOverflowBitmap(context); LayoutInflater inflater = LayoutInflater.from(context); BubbleView bubbleView = (BubbleView) inflater.inflate( - R.layout.bubblebar_item_view, mBarView, false /* attachToRoot */); + R.layout.bubble_bar_overflow_button, mBarView, false /* attachToRoot */); BubbleBarOverflow overflow = new BubbleBarOverflow(bubbleView); bubbleView.setOverflow(overflow, bitmap); return overflow; diff --git a/res/layout/bubble_bar_overflow_button.xml b/res/layout/bubble_bar_overflow_button.xml new file mode 100644 index 0000000000..cb54990c86 --- /dev/null +++ b/res/layout/bubble_bar_overflow_button.xml @@ -0,0 +1,21 @@ + + + \ No newline at end of file