Merge changes I93c2232d,I00daff83 into udc-qpr-dev

* changes:
  Align the bubble bar with the taskbar in overview and app
  Update the bubble bar offset on Home
This commit is contained in:
Liran Binyamin authored and Android (Google) Code Review committed 2023-07-06 18:40:27 +00:00
commit 7fedde35ad
4 files changed
+46 -7

No files matched your search

@@ -72,7 +72,11 @@ public class BubbleBarView extends FrameLayout {
private final BubbleBarBackground mBubbleBarBackground;
// The current bounds of all the bubble bar.
/**
* The current bounds of all the bubble bar. Note that these bounds may not account for
* translation. The bounds should be retrieved using {@link #getBubbleBarBounds()} which
* updates the bounds and accounts for translation.
*/
private final Rect mBubbleBarBounds = new Rect();
// The amount the bubbles overlap when they are stacked in the bubble bar
private final float mIconOverlapAmount;
@@ -186,9 +190,11 @@ public class BubbleBarView extends FrameLayout {
}
/**
* Returns the bounds of the bubble bar.
* Updates the bounds with translation that may have been applied and returns the result.
*/
public Rect getBubbleBarBounds() {
mBubbleBarBounds.top = getTop() + (int) getTranslationY();
mBubbleBarBounds.bottom = getBottom() + (int) getTranslationY();
return mBubbleBarBounds;
}