Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 55bc7dc4 authored by Guang Zhu's avatar Guang Zhu Committed by Android Git Automerger
Browse files

am ccbeb61a: Block monkey from creating user profiles

* commit 'ccbeb61a':
  Block monkey from creating user profiles
parents c19586a8 ccbeb61a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -571,6 +571,9 @@ public class UserSwitcherController {
                cancel();
            } else {
                dismiss();
                if (ActivityManager.isUserAMonkey()) {
                    return;
                }
                UserInfo user = mUserManager.createSecondaryUser(
                        mContext.getString(R.string.user_new_user_name), 0 /* flags */);
                if (user == null) {