Fixes wrong container for LAUNCHER_ITEM_DROP_COMPLETED log event.

Bug: 179532038
Change-Id: Idfa1b82c35338a7472ff80d94fb20c69e498a028
This commit is contained in:
thiruram committed 2021-02-10 10:30:03 -08:00
1 parent ea826f87d1
commit 7823402ec9
3 files changed
+14 -5

No files matched your search

+2 -3
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);