diff options
author | Michael Jurka <mikejurka@google.com> | 2011-08-29 14:02:47 -0700 |
---|---|---|
committer | Michael Jurka <mikejurka@google.com> | 2011-08-29 14:23:30 -0700 |
commit | b60fd0eafbb4e6e61b429c403f024dc903bc483a (patch) | |
tree | 041c870e297bccca1f848db73204a99e918b0b45 /src/com/android/launcher2/ApplicationInfo.java | |
parent | fe1f9b0bd47c611333d1f14261be80ffac08d152 (diff) | |
download | android_packages_apps_Trebuchet-b60fd0eafbb4e6e61b429c403f024dc903bc483a.tar.gz android_packages_apps_Trebuchet-b60fd0eafbb4e6e61b429c403f024dc903bc483a.tar.bz2 android_packages_apps_Trebuchet-b60fd0eafbb4e6e61b429c403f024dc903bc483a.zip |
Tagging where ItemInfos are created for debug purposes
Change-Id: Iad3ed8ef4f81f4990c027ab46fd25b03b089babb
Diffstat (limited to 'src/com/android/launcher2/ApplicationInfo.java')
-rw-r--r-- | src/com/android/launcher2/ApplicationInfo.java | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/com/android/launcher2/ApplicationInfo.java b/src/com/android/launcher2/ApplicationInfo.java index 1fc1d1f55..bbca66445 100644 --- a/src/com/android/launcher2/ApplicationInfo.java +++ b/src/com/android/launcher2/ApplicationInfo.java @@ -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"); } } |