Merge "Account for bubble bar bounds for taskbar overflow" into main
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user