Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c62a4dae authored by Stefan Andonian's avatar Stefan Andonian
Browse files

Show correct drop targets for All-apps predicted item drags.

This change fixes a bug where, after a user drags and drops a
predicted app from the all apps page once, dragging that item again
results in the "Remove" drop target being shown rather than the
"Do Not Suggest" drop target.

Bug: 221057278
Test: Verified correct drop down targets were present after fix when
dropping all apps prediction item on workspace multiple times in a row.

Change-Id: I95940eeebbd547861fcdfbb5d02769b82446184d
parent dc4dad8e
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2751,6 +2751,12 @@ public class Workspace extends PagedView<WorkspacePageIndicator>
                        info = ((AppInfo) info).makeWorkspaceItem();
                        d.dragInfo = info;
                    }
                    if (info instanceof WorkspaceItemInfo
                            && info.container == LauncherSettings.Favorites.CONTAINER_PREDICTION) {
                        // Came from all apps prediction row -- make a copy
                        info = new WorkspaceItemInfo((WorkspaceItemInfo) info);
                        d.dragInfo = info;
                    }
                    if (info instanceof SearchActionItemInfo) {
                        info = ((SearchActionItemInfo) info).createWorkspaceItem(
                                mLauncher.getModel());