Merge "Support user event logging for drag and drop b/30039490" into ub-launcher3-calgary-polish
This commit is contained in:
committed by
Android (Google) Code Review
commit
61bcfba335
@@ -100,7 +100,7 @@ import java.util.HashSet;
|
||||
public class Workspace extends PagedView
|
||||
implements DropTarget, DragSource, DragScroller, View.OnTouchListener,
|
||||
DragController.DragListener, LauncherTransitionable, ViewGroup.OnHierarchyChangeListener,
|
||||
Insettable, DropTargetSource, AccessibilityDragSource, UserEventDispatcher.LaunchSourceProvider {
|
||||
Insettable, DropTargetSource, AccessibilityDragSource {
|
||||
private static final String TAG = "Launcher.Workspace";
|
||||
|
||||
private static boolean ENFORCE_DRAG_EVENT_ORDER = false;
|
||||
@@ -3426,6 +3426,7 @@ public class Workspace extends PagedView
|
||||
if (info.container == NO_ID && info instanceof AppInfo) {
|
||||
// Came from all apps -- make a copy
|
||||
info = ((AppInfo) info).makeShortcut();
|
||||
d.dragInfo = info;
|
||||
}
|
||||
view = mLauncher.createShortcut(cellLayout, (ShortcutInfo) info);
|
||||
break;
|
||||
@@ -4295,6 +4296,12 @@ public class Workspace extends PagedView
|
||||
target.gridY = info.cellY;
|
||||
target.pageIndex = getCurrentPage();
|
||||
targetParent.containerType = LauncherLogProto.WORKSPACE;
|
||||
if (info.container == LauncherSettings.Favorites.CONTAINER_HOTSEAT) {
|
||||
target.rank = info.rank;
|
||||
targetParent.containerType = LauncherLogProto.HOTSEAT;
|
||||
} else if (info.container >= 0) {
|
||||
targetParent.containerType = LauncherLogProto.FOLDER;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user