Removing support for adding legacy shortcuts.

All existing legacy shortcuts will be migrated one-time to deep shortcuts
This shortcuts are pinned under the Launcher package, with custom badging

Bug: 275875209
Test: Updated unit tests
Flag: N/A
Change-Id: I7da001f724776ad8d6c807517b7e4e259de626c2
This commit is contained in:
Sunny Goyal
2023-03-29 16:52:27 -07:00
parent f6bf07a5fe
commit 84b48d8deb
19 changed files with 375 additions and 334 deletions
@@ -78,12 +78,6 @@ public class WorkspaceItemInfo extends ItemInfoWithIcon {
@NonNull
public Intent intent;
/**
* If isShortcut=true and customIcon=false, this contains a reference to the
* shortcut icon as an application's resource.
*/
public Intent.ShortcutIconResource iconResource;
/**
* A message to display when the user tries to start a disabled shortcut.
* This is currently only used for deep shortcuts.
@@ -109,7 +103,6 @@ public class WorkspaceItemInfo extends ItemInfoWithIcon {
super(info);
title = info.title;
intent = new Intent(info.intent);
iconResource = info.iconResource;
status = info.status;
personKeys = info.personKeys.clone();
}
@@ -141,10 +134,6 @@ public class WorkspaceItemInfo extends ItemInfoWithIcon {
if (!usingLowResIcon()) {
writer.putIcon(bitmap, user);
}
if (iconResource != null) {
writer.put(Favorites.ICON_PACKAGE, iconResource.packageName)
.put(Favorites.ICON_RESOURCE, iconResource.resourceName);
}
}
@Override