summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/ShortcutInfo.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/launcher2/ShortcutInfo.java')
-rw-r--r--src/com/android/launcher2/ShortcutInfo.java12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/com/android/launcher2/ShortcutInfo.java b/src/com/android/launcher2/ShortcutInfo.java
index c0f80aeec..6d4853ff4 100644
--- a/src/com/android/launcher2/ShortcutInfo.java
+++ b/src/com/android/launcher2/ShortcutInfo.java
@@ -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;