[3/5] Implement DragToBubbleController.
Implement DragToBubbleController internal logic that utilises DropTargetManager to show drop targets for the bubble bar drop zones. Bug: 411506181 Flag: com.android.wm.shell.enable_create_any_bubble Test: Manual. Go to overview screen and drag app icons from the taskbar over the bubble bar Change-Id: I844151c5e11f237c475d8a26a7784c5662dad658
This commit is contained in:
1 parent
86f7a230f8
commit
5b80c31380
5 files changed
+238
-136
No files matched your search
@@ -28,6 +28,7 @@ import com.android.launcher3.taskbar.bubbles.stashing.BubbleStashController;
|
||||
import com.android.launcher3.util.MultiPropertyFactory;
|
||||
import com.android.launcher3.util.RunnableList;
|
||||
import com.android.quickstep.SystemUiProxy;
|
||||
import com.android.wm.shell.shared.bubbles.DragZoneFactory;
|
||||
|
||||
import java.io.PrintWriter;
|
||||
import java.util.Optional;
|
||||
@@ -122,7 +123,23 @@ public class BubbleControllers {
|
||||
bubbleBarPinController.init(this, bubbleBarLocationListeners);
|
||||
bubblePinController.init(this);
|
||||
bubbleBarSwipeController.ifPresent(c -> c.init(this));
|
||||
dragToBubbleController.init(bubbleBarViewController, bubbleStashController,
|
||||
dragToBubbleController.init(bubbleBarViewController,
|
||||
new DragZoneFactory.BubbleBarPropertiesProvider() {
|
||||
@Override
|
||||
public int getHeight() {
|
||||
return (int) bubbleBarViewController.getBubbleBarCollapsedHeight();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getWidth() {
|
||||
return (int) bubbleBarViewController.getBubbleBarCollapsedWidth();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getBottomPadding() {
|
||||
return -(int) bubbleStashController.getBubbleBarTranslationY();
|
||||
}
|
||||
},
|
||||
SystemUiProxy.INSTANCE.get(taskbarControllers.taskbarActivityContext));
|
||||
mPostInitRunnables.executeAllAndDestroy();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user