Setting context in LauncherAppState before initialising it,

as it can be called from a BroadcastReceiver

Bug: 17519159
Change-Id: I0434a3d1c392e8861eb759d88942deaf98116c19
This commit is contained in:
Sunny Goyal
2014-09-16 09:41:39 -07:00
parent a20490cd9e
commit 5610fe72e0

View File

@@ -42,6 +42,7 @@ public class PackageInstallerCompatVL extends PackageInstallerCompat {
PackageInstallerCompatVL(Context context) {
mInstaller = context.getPackageManager().getPackageInstaller();
LauncherAppState.setApplicationContext(context.getApplicationContext());
mCache = LauncherAppState.getInstance().getIconCache();
mResumed = false;