summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/InstallShortcutReceiver.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2015-04-16 15:20:51 -0700
committerSunny Goyal <sunnygoyal@google.com>2015-04-22 10:08:14 -0700
commit756adbc3e41ee1edb53c580b8c679f343924fab5 (patch)
treeab8f8180f393dad6586e31c14aac4905ad3eb44d /src/com/android/launcher3/InstallShortcutReceiver.java
parent7372fc659ed16c2e14a64a3d78a2c63554005844 (diff)
downloadpackages_apps_Trebuchet-756adbc3e41ee1edb53c580b8c679f343924fab5.tar.gz
packages_apps_Trebuchet-756adbc3e41ee1edb53c580b8c679f343924fab5.tar.bz2
packages_apps_Trebuchet-756adbc3e41ee1edb53c580b8c679f343924fab5.zip
Fixing missing updates in package install sessions
> Ensure icon cache never returns null icon > Enabling install shortuct receiver only after workspace has finished binding > Making all the model changes for package installs on worker thread and only posting the updaes on the UI > Making shortcut exists check on the loaded items and not on the DB > Explicitely using worker thread for PckageInstallListener > Removing backward compatibility support from PackageInstallerCompat Change-Id: I9592771b9670c1c1c84c8208cae8dafa7b393e65
Diffstat (limited to 'src/com/android/launcher3/InstallShortcutReceiver.java')
-rw-r--r--src/com/android/launcher3/InstallShortcutReceiver.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/com/android/launcher3/InstallShortcutReceiver.java b/src/com/android/launcher3/InstallShortcutReceiver.java
index 0c69154aa..27dda6404 100644
--- a/src/com/android/launcher3/InstallShortcutReceiver.java
+++ b/src/com/android/launcher3/InstallShortcutReceiver.java
@@ -199,12 +199,8 @@ public class InstallShortcutReceiver extends BroadcastReceiver {
}
}
- final boolean exists = LauncherModel.shortcutExists(context, pendingInfo.label,
- intent, pendingInfo.user);
- if (!exists) {
- // Generate a shortcut info to add into the model
- addShortcuts.add(pendingInfo.getShortcutInfo());
- }
+ // Generate a shortcut info to add into the model
+ addShortcuts.add(pendingInfo.getShortcutInfo());
}
// Add the new apps to the model and bind them