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

Commit d0a2a8cb 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
(cherry picked from commit 845f38c6)
Ticket: CYNGNOS-751
parent 1452ca88
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -512,6 +512,7 @@ public class ThemeService extends IThemeService.Stub {
    }

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