Fixes wrong container for LAUNCHER_ITEM_DROP_COMPLETED log event.

Bug: 179532038
Change-Id: Idfa1b82c35338a7472ff80d94fb20c69e498a028
This commit is contained in:
thiruram
2021-02-05 18:39:17 -08:00
parent ea826f87d1
commit 7823402ec9
3 changed files with 14 additions and 5 deletions

View File

@@ -1706,10 +1706,9 @@ public class Workspace extends PagedView<WorkspacePageIndicator>
if (dropOverView instanceof FolderIcon) {
FolderIcon fi = (FolderIcon) dropOverView;
if (fi.acceptDrop(d.dragInfo)) {
mStatsLogManager.logger().withItemInfo(d.dragInfo).withInstanceId(d.logInstanceId)
.log(LauncherEvent.LAUNCHER_ITEM_DROP_COMPLETED);
mStatsLogManager.logger().withItemInfo(fi.mInfo).withInstanceId(d.logInstanceId)
.log(LauncherEvent.LAUNCHER_ITEM_DROP_COMPLETED_ON_FOLDER_ICON);
fi.onDrop(d, false /* itemReturnedOnFailedDrop */);
// if the drag started here, we need to remove it from the workspace
if (!external) {
getParentCellLayoutForView(mDragInfo.cell).removeView(mDragInfo.cell);