Tagging where ItemInfos are created for debug purposes

Change-Id: Iad3ed8ef4f81f4990c027ab46fd25b03b089babb
This commit is contained in:
Michael Jurka
2011-08-29 14:02:47 -07:00
parent fe1f9b0bd4
commit b60fd0eafb
12 changed files with 65 additions and 39 deletions

View File

@@ -62,12 +62,14 @@ class ShortcutInfo extends ItemInfo {
*/
private Bitmap mIcon;
ShortcutInfo() {
ShortcutInfo(String whereCreated) {
super(whereCreated);
itemType = LauncherSettings.BaseLauncherColumns.ITEM_TYPE_SHORTCUT;
this.whereCreated = whereCreated;
}
public ShortcutInfo(ShortcutInfo info) {
super(info);
public ShortcutInfo(ShortcutInfo info, String whereCreated) {
super(info, whereCreated);
title = info.title.toString();
intent = new Intent(info.intent);
if (info.iconResource != null) {
@@ -80,8 +82,8 @@ class ShortcutInfo extends ItemInfo {
}
/** TODO: Remove this. It's only called by ApplicationInfo.makeShortcut. */
public ShortcutInfo(ApplicationInfo info) {
super(info);
public ShortcutInfo(ApplicationInfo info, String whereCreated) {
super(info, whereCreated);
title = info.title.toString();
intent = new Intent(info.intent);
customIcon = false;