Making various model objects injectable
Bug: 361850561 Test: Updated tests Flag: EXEMPT dagger Change-Id: Ibb45b72c186e6aeeed7a37b0ae3f8083472019d7
This commit is contained in:
1 parent
24645d732c
commit
42975c39db
39 files changed
+601
-505
No files matched your search
@@ -52,11 +52,11 @@ public class PackageInstallStateChangedTask implements ModelUpdateTask {
|
||||
try {
|
||||
// For instant apps we do not get package-add. Use setting events to update
|
||||
// any pinned icons.
|
||||
Context context = taskController.getApp().getContext();
|
||||
Context context = taskController.getContext();
|
||||
ApplicationInfo ai = context
|
||||
.getPackageManager().getApplicationInfo(mInstallInfo.packageName, 0);
|
||||
if (InstantAppResolver.newInstance(context).isInstantApp(ai)) {
|
||||
taskController.getApp().getModel().newModelCallbacks()
|
||||
taskController.getModel().newModelCallbacks()
|
||||
.onPackageAdded(ai.packageName, mInstallInfo.user);
|
||||
}
|
||||
} catch (PackageManager.NameNotFoundException e) {
|
||||
|
||||
Reference in new issue
Block a user