summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/InstallShortcutReceiver.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2015-11-24 11:40:40 -0800
committerSunny Goyal <sunnygoyal@google.com>2015-11-24 12:06:42 -0800
commit7bce5f7988d63e6f64db4b8482f781cc63820246 (patch)
tree2dc52bb4d38c59afa2319dea74fb745bd6c95d0a /src/com/android/launcher3/InstallShortcutReceiver.java
parent4ee66259eb7835bfcf3747596e068319e1e3c677 (diff)
downloadandroid_packages_apps_Trebuchet-7bce5f7988d63e6f64db4b8482f781cc63820246.tar.gz
android_packages_apps_Trebuchet-7bce5f7988d63e6f64db4b8482f781cc63820246.tar.bz2
android_packages_apps_Trebuchet-7bce5f7988d63e6f64db4b8482f781cc63820246.zip
Tying LauncherAppState lifecycle with LauncherProvider
The content provider is the first component started with the main process, which makes it ideal for initiating LauncherAppState Change-Id: I03db82a8949ad1376af53a0033592f421dbf0b15
Diffstat (limited to 'src/com/android/launcher3/InstallShortcutReceiver.java')
-rw-r--r--src/com/android/launcher3/InstallShortcutReceiver.java1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/com/android/launcher3/InstallShortcutReceiver.java b/src/com/android/launcher3/InstallShortcutReceiver.java
index 9a7519323..571d99a23 100644
--- a/src/com/android/launcher3/InstallShortcutReceiver.java
+++ b/src/com/android/launcher3/InstallShortcutReceiver.java
@@ -171,7 +171,6 @@ public class InstallShortcutReceiver extends BroadcastReceiver {
private static void queuePendingShortcutInfo(PendingInstallShortcutInfo info, Context context) {
// Queue the item up for adding if launcher has not loaded properly yet
- LauncherAppState.setApplicationContext(context.getApplicationContext());
LauncherAppState app = LauncherAppState.getInstance();
boolean launcherNotLoaded = app.getModel().getCallback() == null;