summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/LauncherModel.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2017-01-12 16:55:36 -0800
committerSunny Goyal <sunnygoyal@google.com>2017-01-12 18:54:21 -0800
commite6e7200791c28472c9335a187a85dbeda1a77d24 (patch)
tree46bab436bccab7c4d545ea76b1348c7b5b172e20 /src/com/android/launcher3/LauncherModel.java
parent3e9be43b6ea75c8b82b57aa58508a0c3e8e1d721 (diff)
downloadandroid_packages_apps_Trebuchet-e6e7200791c28472c9335a187a85dbeda1a77d24.tar.gz
android_packages_apps_Trebuchet-e6e7200791c28472c9335a187a85dbeda1a77d24.tar.bz2
android_packages_apps_Trebuchet-e6e7200791c28472c9335a187a85dbeda1a77d24.zip
Removing promiseIntent property from ShortuctInfo
> Instead of checking promiseIntent != null, using isPromise() for consistency > Fixing bug where clicking a pending icon does not launch anything > Fixing bug where draging an icon on Info target, permanently hides the icon Change-Id: Ic8f6b56042dba42d5ed9aedb0f5947186e1a4208
Diffstat (limited to 'src/com/android/launcher3/LauncherModel.java')
-rw-r--r--src/com/android/launcher3/LauncherModel.java5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/com/android/launcher3/LauncherModel.java b/src/com/android/launcher3/LauncherModel.java
index 0907c8cad..693861184 100644
--- a/src/com/android/launcher3/LauncherModel.java
+++ b/src/com/android/launcher3/LauncherModel.java
@@ -1321,8 +1321,6 @@ public class LauncherModel extends BroadcastReceiver
if (restored) {
if (c.user.equals(Process.myUserHandle())) {
info = c.getRestoredItemInfo(intent, promiseType);
- intent = PackageManagerHelper.getMarketIntent(
- intent.getComponent().getPackageName());
} else {
// Don't restore items for other profiles.
c.markDeleted("Restore from managed profile not supported");
@@ -1382,9 +1380,6 @@ public class LauncherModel extends BroadcastReceiver
// TODO: Remove this extra. Instead we should be using
// itemInfo#user.
info.intent.putExtra(ItemInfo.EXTRA_PROFILE, c.serialNumber);
- if (info.promisedIntent != null) {
- info.promisedIntent.putExtra(ItemInfo.EXTRA_PROFILE, c.serialNumber);
- }
info.isDisabled |= disabledState;
if (isSafeMode && !Utilities.isSystemApp(context, intent)) {
info.isDisabled |= ShortcutInfo.FLAG_DISABLED_SAFEMODE;