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

Commit bd2c6754 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Do not hold InstantAppRegistry lock when deleting package"

parents 7c067f9e 5ff4de58
Loading
Loading
Loading
Loading
+12 −12
Original line number Diff line number Diff line
@@ -879,7 +879,6 @@ public class InstantAppRegistry implements Watchable, Snappable {
            });
        }

        synchronized (mLock) {
        if (packagesToDelete != null) {
            final int packageCount = packagesToDelete.size();
            for (int i = 0; i < packageCount; i++) {
@@ -895,6 +894,7 @@ public class InstantAppRegistry implements Watchable, Snappable {
            }
        }

        synchronized (mLock) {
            // Prune uninstalled instant apps
            // TODO: Track last used time for uninstalled instant apps for better pruning
            for (int userId : mUserManager.getUserIds()) {