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

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

Merge "Fix RequestPinItemTest, broken by my manual merge." into ub-launcher3-master

parents f3ac1f22 14f3936c
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -137,7 +137,15 @@ public class InstallShortcutReceiver extends BroadcastReceiver {
                if (DBG) {
                    Log.d(TAG, "Ignoring shortcut for absent package: " + info.launchIntent);
                }
                continue;
            }

            // Generate a shortcut info to add into the model
            installQueue.add(info.getItemInfo());
        }
        prefs.edit().remove(APPS_PENDING_INSTALL).apply();
        if (!installQueue.isEmpty()) {
            model.addAndBindAddedWorkspaceItems(installQueue);
        }
    }

+4 −6
Original line number Diff line number Diff line
@@ -124,13 +124,11 @@ public class AddWorkspaceItemsTask extends BaseModelUpdateTask {
                            // App was installed while launcher was in the background.
                            itemInfo = new AppInfo(app.getContext(), activities.get(0), item.user)
                                    .makeWorkspaceItem();
                            PackageItemInfo info = new PackageItemInfo(packageName);
                            WorkspaceItemInfo wii = (WorkspaceItemInfo) itemInfo;
                            app.getIconCache().getTitleAndIconForApp(info, wii.usingLowResIcon());
                            wii.title = info.title;
                            wii.contentDescription = info.contentDescription;
                            wii.iconBitmap = info.iconBitmap;
                            wii.iconColor = info.iconColor;
                            wii.title = "";
                            wii.applyFrom(app.getIconCache().getDefaultIcon(item.user));
                            app.getIconCache().getTitleAndIcon(wii,
                                    ((WorkspaceItemInfo) itemInfo).usingLowResIcon());
                        } else {
                            // Session was cancelled, do not add.
                            continue;