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

Commit c7de7b8b authored by Andy Mast's avatar Andy Mast
Browse files

Cleanup app->{theme1,theme2...} mapping on uninstall

Change-Id: I24b43e8817db1927d5b43fcf7ad3340269d046ea
parent 03224011
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -5603,6 +5603,10 @@ public class PackageManagerService extends IPackageManager.Stub {
                map.remove(opkg.packageName);
                map.remove(opkg.packageName);
            }
            }
            if (map.isEmpty()) {
                mOverlays.remove(target);
            }
            PackageParser.Package targetPkg = mPackages.get(target);
            PackageParser.Package targetPkg = mPackages.get(target);
            if (targetPkg != null) {
            if (targetPkg != null) {
                String idmapPath = getIdmapPath(targetPkg, opkg);
                String idmapPath = getIdmapPath(targetPkg, opkg);
@@ -5623,6 +5627,7 @@ public class PackageManagerService extends IPackageManager.Stub {
           String idmapPath = getIdmapPath(appPkg, opkg);
           String idmapPath = getIdmapPath(appPkg, opkg);
           new File(idmapPath).delete();
           new File(idmapPath).delete();
        }
        }
        mOverlays.remove(appPkg.packageName);
    }
    }
    private void recursiveDelete(File f) {
    private void recursiveDelete(File f) {