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
Loading
Please register or sign in to comment