Always set the LauncherAppState context before using it from a broadcast. (Bug 10947459)

Change-Id: I284786b538a9d58aa96cfc208ef68621e2500645
This commit is contained in:
Winson Chung
2013-09-27 14:59:38 -07:00
parent 6da63f81f8
commit c88dceb0b5
2 changed files with 2 additions and 0 deletions

View File

@@ -224,6 +224,7 @@ public class InstallShortcutReceiver extends BroadcastReceiver {
data.getParcelableExtra(Intent.EXTRA_SHORTCUT_ICON_RESOURCE);
// Queue the item up for adding if launcher has not loaded properly yet
LauncherAppState.setApplicationContext(context.getApplicationContext());
LauncherAppState app = LauncherAppState.getInstance();
boolean launcherNotLoaded = (app.getDynamicGrid() == null);