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

Commit 91c459ec authored by Kenny Root's avatar Kenny Root
Browse files

Copy user info from PackageSetting as well

In order not to clobber the internal system's settings, we duplicate it
before putting it back into mPackages, but the PackageSetting has a
couple extra pieces of information that weren't being copied.

Bug: 3339279
Change-Id: I047087ac3477c7b2d5ce23e5e0a5e8c094bd0d3f
parent 65ba2c42
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -7845,6 +7845,14 @@ class PackageManagerService extends IPackageManager.Stub {
            copyFrom(orig);
        }

        public void copyFrom(PackageSetting base) {
            super.copyFrom((PackageSettingBase) base);

            userId = base.userId;
            sharedUser = base.sharedUser;
            pkg = base.pkg;
        }

        @Override
        public String toString() {
            return "PackageSetting{"