去掉抽屉,去掉取消按钮

This commit is contained in:
2020-11-16 16:56:51 +08:00
parent 888ba814ea
commit 5ef06d1b3f
12 changed files with 170 additions and 62 deletions

View File

@@ -1511,15 +1511,15 @@ public class Workspace extends PagedView<WorkspacePageIndicator>
mDragSourceInternal = (ShortcutAndWidgetContainer) child.getParent();
}
if (child instanceof BubbleTextView && !dragOptions.isAccessibleDrag) {
PopupContainerWithArrow popupContainer = PopupContainerWithArrow
.showForIcon((BubbleTextView) child);
if (popupContainer != null) {
dragOptions.preDragCondition = popupContainer.createPreDragCondition();
mLauncher.getUserEventDispatcher().resetElapsedContainerMillis("dragging started");
}
}
// if (child instanceof BubbleTextView && !dragOptions.isAccessibleDrag) {
// PopupContainerWithArrow popupContainer = PopupContainerWithArrow
// .showForIcon((BubbleTextView) child);
// if (popupContainer != null) {
// dragOptions.preDragCondition = popupContainer.createPreDragCondition();
//
// mLauncher.getUserEventDispatcher().resetElapsedContainerMillis("dragging started");
// }
// }
DragView dv = mDragController.startDrag(b, dragLayerX, dragLayerY, source,
dragObject, dragVisualizeOffset, dragRect, scale * iconScale, scale, dragOptions);