commit | 8ca17560e50c419ad9121530b41d52e448be20b9 | [log] [tgz] |
---|---|---|
author | Adam Bookatz <bookatz@google.com> | Tue Nov 23 14:55:28 2021 -0800 |
committer | Adam Bookatz <bookatz@google.com> | Tue Nov 23 14:55:28 2021 -0800 |
tree | 7f0211e9307780a7db5d760375a1d9cc58f6f47a | |
parent | e4e252aa953ee880237549fde4108bf8bd3722da [diff] |
Use UM.canAddMoreUsers and UM.isUserTypeEnabled Settings shouldn't allow creating users if the type is diabled, and it shouldn't allow creating more of a particular user type if no more can be created (even if more can be created of other user types). Previously, Settings didn't take into account the user type when querying whether more users could be created. Bug: 192577100 Test: com.android.settings.users.UserSettingsTest Change-Id: I065478fd14779f528be4edce8ae215391a752ef4