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

Commit 9cc92577 authored by d34d's avatar d34d Committed by Clark Scheff
Browse files

Install themes and icon packs for secondary users.

Change-Id: I48ae6835223510a433642fced5b96b6c3954baf6
parent 5fed217b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2714,8 +2714,10 @@ final class Settings {
        FileUtils.setPermissions(path.toString(), FileUtils.S_IRWXU | FileUtils.S_IRWXG
                | FileUtils.S_IXOTH, -1, -1);
        for (PackageSetting ps : mPackages.values()) {
            boolean installed = ((ps.pkgFlags&ApplicationInfo.FLAG_SYSTEM) != 0) ||
                    (ps.pkg.mIsThemeApk || ps.pkg.mIsLegacyThemeApk || ps.pkg.mIsLegacyIconPackApk);
            // Only system apps are initially installed.
            ps.setInstalled((ps.pkgFlags&ApplicationInfo.FLAG_SYSTEM) != 0, userHandle);
            ps.setInstalled(installed, userHandle);
            // Need to create a data directory for all apps under this user.
            installer.createUserData(ps.name,
                    UserHandle.getUid(userHandle, ps.appId), userHandle,