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

Commit 845f38c6 authored by d34d's avatar d34d Committed by Gerrit Code Review
Browse files

Only clear icon cache when theme/icon pack applied

Icon cache would get cleared on boot when applying the user's theme
at startup which can negatively impact launchers when they are loading
icons.  Icon cache should persist as long as that icon pack is applied.

Change-Id: I248e08cdc87a31c1718cbc53aed49891056300cc
parent 198a4c3b
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -512,6 +512,7 @@ public class ThemeService extends IThemeService.Stub {
    }
    }


    private boolean updateIcons(String pkgName) {
    private boolean updateIcons(String pkgName) {
        ThemeUtils.clearIconCache();
        try {
        try {
            if (pkgName.equals(SYSTEM_DEFAULT)) {
            if (pkgName.equals(SYSTEM_DEFAULT)) {
                mPM.updateIconMaps(null);
                mPM.updateIconMaps(null);
+0 −1
Original line number Original line Diff line number Diff line
@@ -14577,7 +14577,6 @@ public class PackageManagerService extends IPackageManager.Stub {
                "could not update icon mapping because caller "
                "could not update icon mapping because caller "
                + "does not have change config permission");
                + "does not have change config permission");
        ThemeUtils.clearIconCache();
        if (pkgName == null) {
        if (pkgName == null) {
            clearIconMapping();
            clearIconMapping();
            return;
            return;