[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
@@ -132,13 +132,13 @@ public class TaskbarDragController extends DragController<BaseTaskbarContext> im
|
||||
public void init(TaskbarControllers controllers) {
|
||||
mControllers = controllers;
|
||||
mControllers.bubbleControllers.ifPresent(
|
||||
c -> c.bubbleBarViewController.addBubbleBarDropTargets(this));
|
||||
c -> c.dragToBubbleController.addBubbleBarDropTargets(this));
|
||||
}
|
||||
|
||||
/** Called when the controller is destroyed. */
|
||||
public void onDestroy() {
|
||||
mControllers.bubbleControllers.ifPresent(
|
||||
c -> c.bubbleBarViewController.removeBubbleBarDropTargets(this));
|
||||
c -> c.dragToBubbleController.removeBubbleBarDropTargets(this));
|
||||
}
|
||||
|
||||
public void setDisallowGlobalDrag(boolean disallowGlobalDrag) {
|
||||
|
||||
Reference in new issue
Block a user