Merge "Always update overlay paths of newly added apps" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
17df75d895
@@ -244,7 +244,11 @@ final class OverlayManagerServiceImpl {
|
|||||||
@NonNull
|
@NonNull
|
||||||
Set<PackageAndUser> onPackageAdded(@NonNull final String pkgName,
|
Set<PackageAndUser> onPackageAdded(@NonNull final String pkgName,
|
||||||
final int userId) throws OperationFailedException {
|
final int userId) throws OperationFailedException {
|
||||||
return reconcileSettingsForPackage(pkgName, userId, 0 /* flags */);
|
final Set<PackageAndUser> updatedTargets = new ArraySet<>();
|
||||||
|
// Always update the overlays of newly added packages.
|
||||||
|
updatedTargets.add(new PackageAndUser(pkgName, userId));
|
||||||
|
updatedTargets.addAll(reconcileSettingsForPackage(pkgName, userId, 0 /* flags */));
|
||||||
|
return updatedTargets;
|
||||||
}
|
}
|
||||||
|
|
||||||
@NonNull
|
@NonNull
|
||||||
|
|||||||
Reference in New Issue
Block a user