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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user