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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user