From cc843823a62cc9f0b8c2ca01f6b7ad835fac890a Mon Sep 17 00:00:00 2001 From: Mady Mellor Date: Thu, 29 Aug 2024 14:20:16 -0700 Subject: [PATCH] Add some info about the overflow in bubble bar dump Flag: com.android.wm.shell.enable_bubble_bar Test: manual - add some bubbles to bubble bar, take a BR and look at the dump Bug: 358304168 Change-Id: I91e50591df166e928d06ba9a29f69f923218de71 --- .../com/android/launcher3/taskbar/bubbles/BubbleBarView.java | 5 +++-- .../launcher3/taskbar/bubbles/BubbleBarViewController.java | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarView.java b/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarView.java index c458936c80..71867fe54b 100644 --- a/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarView.java +++ b/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarView.java @@ -1473,8 +1473,9 @@ public class BubbleBarView extends FrameLayout { pw.println("BubbleBarView state:"); pw.println(" visibility: " + getVisibility()); pw.println(" alpha: " + getAlpha()); - pw.println(" translation Y: " + getTranslationY()); - pw.println(" bubbles in bar (childCount = " + getChildCount() + ")"); + pw.println(" translationY: " + getTranslationY()); + pw.println(" childCount: " + getChildCount()); + pw.println(" hasOverflow: " + hasOverflow()); for (BubbleView bubbleView: getBubbles()) { BubbleBarItem bubble = bubbleView.getBubble(); String key = bubble == null ? "null" : bubble.getKey(); diff --git a/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarViewController.java b/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarViewController.java index 5c1a5467d8..65f857eb16 100644 --- a/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarViewController.java +++ b/quickstep/src/com/android/launcher3/taskbar/bubbles/BubbleBarViewController.java @@ -793,6 +793,7 @@ public class BubbleBarViewController { pw.println(" mShouldShowEducation: " + mShouldShowEducation); pw.println(" mBubbleBarTranslationY.value: " + mBubbleBarTranslationY.value); pw.println(" mBubbleBarSwipeUpTranslationY: " + mBubbleBarSwipeUpTranslationY); + pw.println(" mOverflowAdded: " + mOverflowAdded); if (mBarView != null) { mBarView.dump(pw); } else {