commit | 50ef2008928395975ad057c3c127ed401c6ad301 | [log] [tgz] |
---|---|---|
author | Varun Shah <varunshah@google.com> | Mon Mar 04 16:41:12 2019 -0800 |
committer | Varun Shah <varunshah@google.com> | Mon Mar 11 14:49:03 2019 -0700 |
tree | 973e97070701afbfdf1b482e74f588697d115c07 | |
parent | 67a088d69ce5989f7aee4af25fb3c23bbf37643e [diff] |
Added UserManager#getUserSwitchability. The new SystemApi indicates whether user switching is currently allowed or not. This API provides more detail than the already existing UserManager#canSwitchUsers (now deprecated) by telling the user why users cannot be switched via a flag that's returned. Bug: 124883455 Test: atest android.server.pm.UserManagerTest#testGetUserSwitchability Change-Id: Ib3ac2f063f3638a172fa339fd2330604b910c7f4