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

Commit 97ef63ba 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: Ic9b64117f287d53f2c0cebb924c775405690938e
parent 91bfb813
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -7926,6 +7926,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{"