diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2015-07-13 19:59:50 -0700 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2015-07-13 20:15:37 -0700 |
commit | c22841bfd1961781a84cfccb98d1c2937a9adee4 (patch) | |
tree | 955429b2081d3f364f911d14cbd363910fb191f8 /src/com/android/launcher3/LauncherModel.java | |
parent | cbab1cb44f4fca4ea80ec2aeb63b55b9ea5d9e2e (diff) | |
download | packages_apps_Trebuchet-c22841bfd1961781a84cfccb98d1c2937a9adee4.tar.gz packages_apps_Trebuchet-c22841bfd1961781a84cfccb98d1c2937a9adee4.tar.bz2 packages_apps_Trebuchet-c22841bfd1961781a84cfccb98d1c2937a9adee4.zip |
Fixing shortcuts not getting migrated to app icons
Bug: 22410445
Change-Id: I939c59270529daf51638aa30b30763c18a2ce6a5
Diffstat (limited to 'src/com/android/launcher3/LauncherModel.java')
-rw-r--r-- | src/com/android/launcher3/LauncherModel.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/launcher3/LauncherModel.java b/src/com/android/launcher3/LauncherModel.java index 7414a2204..9d2a890a6 100644 --- a/src/com/android/launcher3/LauncherModel.java +++ b/src/com/android/launcher3/LauncherModel.java @@ -1999,7 +1999,7 @@ public class LauncherModel extends BroadcastReceiver "constructing info for partially restored package", true); info = getRestoredItemInfo(c, titleIndex, intent, - promiseType, cursorIconInfo, context); + promiseType, itemType, cursorIconInfo, context); intent = getRestoredItemIntent(c, context, intent); } else { // Don't restore items for other profiles. @@ -3380,7 +3380,7 @@ public class LauncherModel extends BroadcastReceiver * to a package that is not yet installed on the system. */ public ShortcutInfo getRestoredItemInfo(Cursor c, int titleIndex, Intent intent, - int promiseType, CursorIconInfo iconInfo, Context context) { + int promiseType, int itemType, CursorIconInfo iconInfo, Context context) { final ShortcutInfo info = new ShortcutInfo(); info.user = UserHandleCompat.myUserHandle(); @@ -3406,7 +3406,7 @@ public class LauncherModel extends BroadcastReceiver } info.contentDescription = mUserManager.getBadgedLabelForUser(info.title, info.user); - info.itemType = LauncherSettings.Favorites.ITEM_TYPE_SHORTCUT; + info.itemType = itemType; info.promisedIntent = intent; info.status = promiseType; return info; |