Merge changes I964d213d,I95085fd1 into main

* changes:
  Make an input consumer for bubble bar
  Include bubbles in the dragged items of taskbar UI controller
This commit is contained in:
Mady Mellor authored and Android (Google) Code Review committed 2024-08-20 21:34:54 +00:00
commit c15fe691e7
10 files changed
+365 -92

No files matched your search

@@ -308,6 +308,15 @@ public class BubbleBarViewController {
return mBarView.getBubbleBarBounds();
}
/** Checks that bubble bar is visible and that the motion event is within bounds. */
public boolean isEventOverBubbleBar(MotionEvent event) {
if (!isBubbleBarVisible()) return false;
final Rect bounds = getBubbleBarBounds();
final int bubbleBarTopOnScreen = mBarView.getRestingTopPositionOnScreen();
final float x = event.getX();
return event.getRawY() >= bubbleBarTopOnScreen && x >= bounds.left && x <= bounds.right;
}
/** Whether a new bubble is animating. */
public boolean isAnimatingNewBubble() {
return mBubbleBarViewAnimator != null && mBubbleBarViewAnimator.isAnimating();