Skip to content
Commit 4b1b2984 authored by Felipe Leme's avatar Felipe Leme
Browse files

Minor improvements on user management stack.

- Clarify that UserController.mCurrentProfileIds lists all profiles,
  not just the started ones.
- Similarly, renamed updateCurrentProfileIds() to
  updateProfileRelatedCaches() (and updated its javadoc), as that
  method was also updating mUserProfileGroupIds
- Added a UserLifecycleListener to UserController, so the profile
  caches are updated when a new profile is added.
- Removed the UserController.onUserRemoved() call from
  ActivityServiceManager and used the above listener instead.
- Added mCurrentProfileIds to UserController dump() methods.
- Added mCurrentUserId to UserController dump(proto) method.

Test: manual verification
Test: adb shell dumpsys activity users|grep -i profile

Change-Id: I7e11a8d7237a7421ad396ad6515a9496d0bb7f8d
Fixes: 255357601
parent d9ce7604
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment