Fix PMS notifyFirstLaunch logic

This was dropped in the first mLock refactor. Re-adds the broadcast
when a package is moved out of not launched.

Change-Id: I056d233d90797187ff7460902931122cc7b40206
This commit is contained in:
Winson
2022-02-01 16:50:53 -08:00
parent 0891d4b390
commit e767e40126

View File

@@ -6192,6 +6192,13 @@ public class PackageManagerService extends IPackageManager.Stub
}
});
if (wasNotLaunched) {
final String installerPackageName = wasNotLaunchedAndInstallerPackageName.second;
if (installerPackageName != null) {
notifyFirstLaunch(packageName, installerPackageName, userId);
}
}
scheduleWritePackageRestrictions(userId);
}