mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 10:48:19 +00:00
Tagging where ItemInfos are created for debug purposes
Change-Id: Iad3ed8ef4f81f4990c027ab46fd25b03b089babb
This commit is contained in:
@@ -60,7 +60,8 @@ class ApplicationInfo extends ItemInfo {
|
||||
|
||||
int flags = 0;
|
||||
|
||||
ApplicationInfo() {
|
||||
ApplicationInfo(String whereCreated) {
|
||||
super(whereCreated);
|
||||
itemType = LauncherSettings.BaseLauncherColumns.ITEM_TYPE_SHORTCUT;
|
||||
}
|
||||
|
||||
@@ -68,7 +69,8 @@ class ApplicationInfo extends ItemInfo {
|
||||
* Must not hold the Context.
|
||||
*/
|
||||
public ApplicationInfo(PackageManager pm, ResolveInfo info, IconCache iconCache,
|
||||
HashMap<Object, CharSequence> labelCache) {
|
||||
HashMap<Object, CharSequence> labelCache, String whereCreated) {
|
||||
super(whereCreated);
|
||||
final String packageName = info.activityInfo.applicationInfo.packageName;
|
||||
|
||||
this.componentName = new ComponentName(packageName, info.activityInfo.name);
|
||||
@@ -93,8 +95,8 @@ class ApplicationInfo extends ItemInfo {
|
||||
iconCache.getTitleAndIcon(this, info, labelCache);
|
||||
}
|
||||
|
||||
public ApplicationInfo(ApplicationInfo info) {
|
||||
super(info);
|
||||
public ApplicationInfo(ApplicationInfo info, String whereCreated) {
|
||||
super(info, whereCreated);
|
||||
componentName = info.componentName;
|
||||
title = info.title.toString();
|
||||
intent = new Intent(info.intent);
|
||||
@@ -133,6 +135,6 @@ class ApplicationInfo extends ItemInfo {
|
||||
}
|
||||
|
||||
public ShortcutInfo makeShortcut() {
|
||||
return new ShortcutInfo(this);
|
||||
return new ShortcutInfo(this, "18");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user