Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5610fe72 authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Setting context in LauncherAppState before initialising it,

as it can be called from a BroadcastReceiver

Bug: 17519159
Change-Id: I0434a3d1c392e8861eb759d88942deaf98116c19
parent a20490cd
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;