Send showNewUserDisclaimer broadcast when user switching
Previously, showNewUserDisclaimer broadcast is sent just after user unlocked.
Since the new user is not yet ready to get broadcast messages at that time,
it is failed to deliver the broadcast message to the target user.
To make the new user get the message and show a notification correctly,
send the broadcast when the user is switching to foreground.
Bug: 347611453
Test: Run CTS-Verifier "Check new user disclaimer" test and see a notification and a dialog are shown.
Flag: EXEMPT bugfix
Change-Id: I00eb7e02b2d348cb6baae74a48ef170372fde385
1 file changed