Don't show the caption for BubbleBarExpandedView if overflow.
The overflow view doesn't show a handle or have caption bar insets, so the caption view doesn't need to be visible.
Before: screenshot/5F3X2ZrB9wsTDnj
After: screenshot/AfTGqk6ZrmMXwGU
Bug: 403612933
Test: wm presubmit
Flag: com.android.wm.shell.enable_create_any_bubble
Change-Id: I5626f8832aad2dfc15bf96bc93b3f2cc7e86b496
diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/bar/BubbleBarExpandedView.java b/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/bar/BubbleBarExpandedView.java
index 0fae363..d600566 100644
--- a/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/bar/BubbleBarExpandedView.java
+++ b/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/bar/BubbleBarExpandedView.java
@@ -224,7 +224,8 @@
R.layout.bubble_overflow_container, null /* root */);
mOverflowView.initialize(expandedViewManager, positioner);
addView(mOverflowView);
- // Don't show handle for overflow
+ // Don't show caption or handle for overflow
+ mCaptionView.setVisibility(View.GONE);
getHandleView().setVisibility(View.GONE);
} else {
mBubbleTaskView = bubbleTaskView;