Merge "arc: Do not construct RestrictionSet with empty restrictions bundle" am: c386a39a95 am: 467d5d36d1 am: 1556cd3c02
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1940504 Change-Id: Idbba7564e5a2a887e9009f51c0974ebf4ea54f9d
This commit is contained in:
@@ -3402,8 +3402,11 @@ public class UserManagerService extends IUserManager.Stub {
|
|||||||
Slog.wtf(LOG_TAG, "Seeing both legacy and current local restrictions in xml");
|
Slog.wtf(LOG_TAG, "Seeing both legacy and current local restrictions in xml");
|
||||||
}
|
}
|
||||||
} else if (legacyLocalRestrictions != null) {
|
} else if (legacyLocalRestrictions != null) {
|
||||||
mDevicePolicyLocalUserRestrictions.put(id,
|
RestrictionsSet legacyLocalRestrictionsSet =
|
||||||
new RestrictionsSet(id, legacyLocalRestrictions));
|
legacyLocalRestrictions.isEmpty()
|
||||||
|
? new RestrictionsSet()
|
||||||
|
: new RestrictionsSet(id, legacyLocalRestrictions);
|
||||||
|
mDevicePolicyLocalUserRestrictions.put(id, legacyLocalRestrictionsSet);
|
||||||
}
|
}
|
||||||
if (globalRestrictions != null) {
|
if (globalRestrictions != null) {
|
||||||
mDevicePolicyGlobalUserRestrictions.updateRestrictions(id,
|
mDevicePolicyGlobalUserRestrictions.updateRestrictions(id,
|
||||||
|
|||||||
Reference in New Issue
Block a user