Always set the LauncherAppState context before using it from a broadcast. (Bug 10947459)
Change-Id: I284786b538a9d58aa96cfc208ef68621e2500645
This commit is contained in:
1 parent
6da63f81f8
commit
c88dceb0b5
2 files changed
+2
No files matched your search
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user