mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 00:06:47 +00:00
Tagging where ItemInfos are created for debug purposes
Change-Id: Iad3ed8ef4f81f4990c027ab46fd25b03b089babb
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user