From 2fbbe6c1506bc4852c74e84e6ef1a913160c1078 Mon Sep 17 00:00:00 2001 From: mpodolian Date: Tue, 23 Apr 2024 18:57:44 +0100 Subject: Fixed bubble still has the caption inset. Fix for an issue that occurs after switching from bubble bar expanded view to regular expanded view - there were still insets left. Test: Visual Fixes: 333740203 Flag: NONE Change-Id: I16898ea25095f008dbb8936c78843dcaebdb092b --- .../Shell/src/com/android/wm/shell/bubbles/BubbleExpandedView.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleExpandedView.java b/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleExpandedView.java index 74f087b6d8f8..0b3c2ba37caf 100644 --- a/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleExpandedView.java +++ b/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleExpandedView.java @@ -446,6 +446,8 @@ public class BubbleExpandedView extends LinearLayout { mManageButton.setVisibility(GONE); } else { mTaskView = bubbleTaskView.getTaskView(); + // reset the insets that might left after TaskView is shown in BubbleBarExpandedView + mTaskView.setCaptionInsets(null); bubbleTaskView.setDelegateListener(mTaskViewListener); // set a fixed width so it is not recalculated as part of a rotation. the width will be -- cgit v1.2.3-59-g8ed1b