Merge "Account for bubble bar bounds for taskbar overflow" into main

This commit is contained in:
Treehugger Robot authored and Android (Google) Code Review committed 2024-11-13 19:23:22 +00:00
commit a8440279bf
6 files changed
+63 -11

No files matched your search

@@ -1290,10 +1290,14 @@ public class BubbleBarView extends FrameLayout {
// If there are more than 2 bubbles, the first 2 should be visible when collapsed,
// excluding the overflow.
return bubbleChildCount >= MAX_VISIBLE_BUBBLES_COLLAPSED
? getScaledIconSize() + mIconOverlapAmount + horizontalPadding
? getCollapsedWidthWithMaxVisibleBubbles()
: getScaledIconSize() + horizontalPadding;
}
float getCollapsedWidthWithMaxVisibleBubbles() {
return getScaledIconSize() + mIconOverlapAmount + 2 * mBubbleBarPadding;
}
/** Returns the child count excluding the overflow if it's present. */
int getBubbleChildCount() {
return hasOverflow() ? getChildCount() - 1 : getChildCount();