Don't set user restrictions directly on USER_ALL. am: fd5af1b03c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/21518370 Change-Id: Ifca1726a0df05d02feac54f30be9345f16b977b6 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -2592,6 +2592,9 @@ public class UserManagerService extends IUserManager.Stub {
|
|||||||
|
|
||||||
applyUserRestrictionsForAllUsersLR();
|
applyUserRestrictionsForAllUsersLR();
|
||||||
for (int i = 0; i < updatedUserIds.size(); i++) {
|
for (int i = 0; i < updatedUserIds.size(); i++) {
|
||||||
|
if (updatedUserIds.get(i) == UserHandle.USER_ALL) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
applyUserRestrictionsLR(updatedUserIds.get(i));
|
applyUserRestrictionsLR(updatedUserIds.get(i));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user