Pass a location when dragging bubble to fullscreen

When a bubble is dragged to full screen, pass the x and y coordinates
of where the bubble was released to wm shell. The coordinates are used
as a starting point for expanding the full screen task.

Flag: com.android.wm.shell.enable_bubble_to_fullscreen
Bug: 388858013
Test: treehugger
Change-Id: I28bb10bdfb00786e43b350239cfdeb3df20b4a6f
This commit is contained in:
Liran Binyamin
2025-03-10 17:43:59 -04:00
parent 24645d732c
commit 18abe9e97e
3 changed files with 13 additions and 11 deletions
@@ -1364,12 +1364,12 @@ public class BubbleBarViewController {
* Removes the bubble from the bubble bar and notifies sysui that the bubble should move to
* full screen.
*/
public void moveBubbleToFullscreen(@NonNull BubbleView bubbleView) {
public void moveDraggedBubbleToFullscreen(@NonNull BubbleView bubbleView, Point dropLocation) {
if (bubbleView.getBubble() == null) {
return;
}
String key = bubbleView.getBubble().getKey();
mSystemUiProxy.moveBubbleToFullscreen(key);
mSystemUiProxy.moveDraggedBubbleToFullscreen(key, dropLocation);
onBubbleDismissed(bubbleView);
}