Supply a context to LauncherAppState from the PackageChangedReceiver.
Bug: 9621647 Change-Id: I1a713177a08fb737e6799d51f438d55f226006e8
This commit is contained in:
1 parent
0becf1fa0c
commit
04d554afcb
1 file changed
+2
@@ -13,6 +13,8 @@ public class PackageChangedReceiver extends BroadcastReceiver {
|
||||
// they sent us a bad intent
|
||||
return;
|
||||
}
|
||||
// in rare cases the receiver races with the application to set up LauncherAppState
|
||||
LauncherAppState.setApplicationContext(context.getApplicationContext());
|
||||
LauncherAppState app = LauncherAppState.getInstance();
|
||||
WidgetPreviewLoader.removeFromDb(app.getWidgetPreviewCacheDb(), packageName);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user