[2/5] Hook up DragToBubbleController and prepare launcher to use it.
Updated DragController logic to set touch event XY coordinates if there is no view returned by the DropTarget. Added wait call for all drop targets views removed to the TaskbarActivityContext#onDragEndOrViewRemoved() method. Bug: 411506181 Flag: com.android.wm.shell.enable_create_any_bubble Test: build launcher Change-Id: Ie97b08f22ae8dc34bd9f4e3738704e4fc90345bb
This commit is contained in:
1 parent
dbd42b6f05
commit
86f7a230f8
5 files changed
+28
-9
No files matched your search
@@ -1287,7 +1287,10 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
|
||||
&& !AbstractFloatingView.hasOpenView(
|
||||
this, TYPE_ALL & ~TYPE_TASKBAR_OVERLAY_PROXY)) {
|
||||
// Reverts Taskbar window to its original size
|
||||
setTaskbarWindowFullscreen(false);
|
||||
Runnable resetTaskbarFullscreen = () -> setTaskbarWindowFullscreen(false);
|
||||
mControllers.bubbleControllers.ifPresentOrElse(
|
||||
bc -> bc.dragToBubbleController.runAfterDropTargetsHidden(
|
||||
resetTaskbarFullscreen), resetTaskbarFullscreen);
|
||||
}
|
||||
|
||||
setAutohideSuspendFlag(FLAG_AUTOHIDE_SUSPEND_DRAGGING, isDragInProgress);
|
||||
|
||||
Reference in new issue
Block a user