Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ac1f2d07 authored by Calin Juravle's avatar Calin Juravle Committed by android-build-merger
Browse files

Merge "Check for a null packageInfo before notifying about app install" into oc-dev am: 1fd46de2

am: 63b89758

Change-Id: I9ebef84e044424da11cecb5acd91e016a3485410
parents e3882829 63b89758
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1915,9 +1915,13 @@ public class PackageManagerService extends IPackageManager.Stub {
            // survive long enough to benefit of background optimizations.
            for (int userId : firstUsers) {
                PackageInfo info = getPackageInfo(packageName, /*flags*/ 0, userId);
                // There's a race currently where some install events may interleave with an uninstall.
                // This can lead to package info being null (b/36642664).
                if (info != null) {
                    mDexManager.notifyPackageInstalled(info, userId);
                }
            }
        }
        // If someone is watching installs - notify them
        if (installObserver != null) {