From 5610fe72e01ac752153f58a3c9e615fcb997df35 Mon Sep 17 00:00:00 2001 From: Sunny Goyal Date: Tue, 16 Sep 2014 09:41:39 -0700 Subject: Setting context in LauncherAppState before initialising it, as it can be called from a BroadcastReceiver Bug: 17519159 Change-Id: I0434a3d1c392e8861eb759d88942deaf98116c19 --- src/com/android/launcher3/compat/PackageInstallerCompatVL.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/com/android/launcher3') diff --git a/src/com/android/launcher3/compat/PackageInstallerCompatVL.java b/src/com/android/launcher3/compat/PackageInstallerCompatVL.java index 9a0831f0e..eba91cb91 100644 --- a/src/com/android/launcher3/compat/PackageInstallerCompatVL.java +++ b/src/com/android/launcher3/compat/PackageInstallerCompatVL.java @@ -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; -- cgit v1.2.3