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

Commit c8a6eb13 authored by Kenny Guy's avatar Kenny Guy Committed by android-build-merger
Browse files

Fix issue with saving admins before finishing loading. am: f98ed686 am: b275a205 am: ee9f03d1

am: 18946328

Change-Id: I10ed70e5aef941dd7b31f381f78eb8418985f33c
parents baa26e2d 18946328
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -2516,14 +2516,14 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
            // Ignore
        }

        // Generate a list of admins from the admin map
        policy.mAdminList.addAll(policy.mAdminMap.values());

        // Might need to upgrade the file by rewriting it
        if (needsRewrite) {
            saveSettingsLocked(userHandle);
        }

        // Generate a list of admins from the admin map
        policy.mAdminList.addAll(policy.mAdminMap.values());

        validatePasswordOwnerLocked(policy);
        updateMaximumTimeToLockLocked(userHandle);
        updateLockTaskPackagesLocked(policy.mLockTaskPackages, userHandle);