summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorAnthony Hugh <ahugh@google.com>2019-11-13 16:48:28 -0800
committerAnthony Hugh <ahugh@google.com>2019-11-21 16:25:00 -0800
commit5d7f9056ee8d817832625da43ce47611c082c44e (patch)
tree34eba52777671db0a7eed72571fbbe09c827c135 /tools/aapt2/java/JavaClassGenerator.cpp
parent0d9dd2b0f330538a7a48e1b66991483f78fca6a7 (diff)
Expose findCurrentGuestUser() to system apps
This CL exposes UserManager.findCurrentGuestUser() to system apps. When switching to Guest user, User Picker needs to know whether or not a Guest already exists since the system limits only 1 to exist. Currently, implementations handle this by manually filtering through getUsers() and checking for isGuest(). Unfortunately, this also means that callers need to understand the other flags on the UserInfo such as guestToRemove. UserManagerService already has code to do this filtering, so expose it there so there is only one place to handle this logic. In addition to the above, cleaned up Android Auto uses to utilize the new API that's available. Bug: 144379962 Test: Open SysUI User Picker and ensure I could select Guest. Selecting a persistent Guest correctly loaded the existing Guest. Selecting Guest when one didn't exist correctly created a new Guest. Change-Id: If877e1c49a751d024c881d1457bea19eefeb1caf
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions