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

Commit 7fa62bb2 authored by Steve Kondik's avatar Steve Kondik Committed by Gerrit Code Review
Browse files

themes: Load icon packs outside the big lock

 * Don't stop the world when loading an icon pack, as it can take a bit
   of time and cause ANR if the system is busy.

Change-Id: I653c2741ab55f73c301b6425f84f255ceb48e8e4
parent c108038d
Loading
Loading
Loading
Loading
+18 −18
Original line number Diff line number Diff line
@@ -14630,7 +14630,6 @@ public class PackageManagerService extends IPackageManager.Stub {
                "could not update icon mapping because caller "
                + "does not have change config permission");
        synchronized (mPackages) {
        ThemeUtils.clearIconCache();
        if (pkgName == null) {
            clearIconMapping();
@@ -14650,6 +14649,7 @@ public class PackageManagerService extends IPackageManager.Stub {
                    mIconPackHelper.getResourceIdForActivityIcon(activity.info);
        }
        synchronized (mPackages) {
            for (Package pkg : mPackages.values()) {
                pkg.applicationInfo.themedIcon =
                        mIconPackHelper.getResourceIdForApp(pkg.packageName);