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

Commit 1314fee7 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Revert "Create new ShortcutInfo when dropping predicted deep...

Merge "Revert "Create new ShortcutInfo when dropping predicted deep shortcuts."" into ub-launcher3-master
parents d598f60d c487b365
Loading
Loading
Loading
Loading
+3 −9
Original line number Diff line number Diff line
@@ -2632,16 +2632,10 @@ public class Workspace extends PagedView<WorkspacePageIndicator>
            case LauncherSettings.Favorites.ITEM_TYPE_APPLICATION:
            case LauncherSettings.Favorites.ITEM_TYPE_SHORTCUT:
            case LauncherSettings.Favorites.ITEM_TYPE_DEEP_SHORTCUT:
                if (info.container == NO_ID) {
                if (info.container == NO_ID && info instanceof AppInfo) {
                    // Came from all apps -- make a copy
                    if (info instanceof AppInfo) {
                    info = ((AppInfo) info).makeShortcut();
                    d.dragInfo = info;
                    } else if (info instanceof ShortcutInfo) {
                        info = new ShortcutInfo((ShortcutInfo) info);
                        d.dragInfo = info;
                    }

                }
                view = mLauncher.createShortcut(cellLayout, (ShortcutInfo) info);
                break;