Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 92a3cdae authored by Annie Lin's avatar Annie Lin
Browse files

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
parent 13cefb79
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -224,7 +224,8 @@ public class BubbleBarExpandedView extends FrameLayout implements BubbleTaskView
                    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;