Fix issue with saving admins before finishing loading. am: f98ed6863a am: b275a205af am: ee9f03d1ed

am: 1894632864

Change-Id: I10ed70e5aef941dd7b31f381f78eb8418985f33c
This commit is contained in:
Kenny Guy
2017-01-18 17:47:03 +00:00
committed by android-build-merger

View File

@@ -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);