mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 18:06:48 +00:00
Always set the LauncherAppState context before using it from a broadcast. (Bug 10947459)
Change-Id: I284786b538a9d58aa96cfc208ef68621e2500645
This commit is contained in:
@@ -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