Merge "User switcher - Fix adding user as non-system user" into tm-dev

This commit is contained in:
Matt Pietal
2022-04-05 12:16:02 +00:00
committed by Android (Google) Code Review

View File

@@ -1215,7 +1215,8 @@ public class UserSwitcherController implements Dumpable {
} }
// Use broadcast instead of ShadeController, as this dialog may have started in // Use broadcast instead of ShadeController, as this dialog may have started in
// another process and normal dagger bindings are not available // another process and normal dagger bindings are not available
mBroadcastSender.closeSystemDialogs(); mBroadcastSender.sendBroadcastAsUser(
new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS), UserHandle.CURRENT);
getContext().startActivityAsUser( getContext().startActivityAsUser(
CreateUserActivity.createIntentForStart(getContext()), CreateUserActivity.createIntentForStart(getContext()),
mUserTracker.getUserHandle()); mUserTracker.getUserHandle());