Fixing some launcher model tests
> Removing static mocks and using Sandbox context instead > Removing inheritence in LauncherModel and converting LauncherApps.Callbacks to a separate class. decMaker sometimes fails because of API changes in LauncherApps.Callbacks Bug: 319877828 Test: atest LoaderTaskTest Flag: N/A Change-Id: If78b5d83595627a355b284f52d887d75fef53014
This commit is contained in:
1 parent
eb1966c278
commit
6449a21062
11 files changed
+165
-179
No files matched your search
@@ -52,7 +52,8 @@ public class PackageInstallStateChangedTask extends BaseModelUpdateTask {
|
||||
ApplicationInfo ai = app.getContext()
|
||||
.getPackageManager().getApplicationInfo(mInstallInfo.packageName, 0);
|
||||
if (InstantAppResolver.newInstance(app.getContext()).isInstantApp(ai)) {
|
||||
app.getModel().onPackageAdded(ai.packageName, mInstallInfo.user);
|
||||
app.getModel().newModelCallbacks()
|
||||
.onPackageAdded(ai.packageName, mInstallInfo.user);
|
||||
}
|
||||
} catch (PackageManager.NameNotFoundException e) {
|
||||
// Ignore
|
||||
|
||||
Reference in new issue
Block a user