commit | a6d9a31a237d858f515a0b047c01c10b986f6439 | [log] [tgz] |
---|---|---|
author | Adam Bookatz <bookatz@google.com> | Thu Jan 13 17:08:10 2022 -0800 |
committer | Adam Bookatz <bookatz@google.com> | Thu Jan 13 17:21:30 2022 -0800 |
tree | 8f55ad936f7da3ac7becf1050704dbceed0e99fa | |
parent | 040d933827667f0d0f19ba3cf91a9e95bf9a7622 [diff] |
canAddMoreProfilesToUser considers MaxSupportedUsers There was a slight bug in the previous code. Managed profiles were subject to not exceeding maxSupportedUsers, but other profile types evaded that condition. It should apply to all profile types (in fact, all users except guest and demo). Bug: 208842920 Test: treehugger Change-Id: I104be8466193376b09e9f4d8c112eb947da7c9c4