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

Commit 871cdeeb authored by Guang Zhu's avatar Guang Zhu Committed by Android Git Automerger
Browse files

am 55bc7dc4: am ccbeb61a: Block monkey from creating user profiles

* commit '55bc7dc4':
  Block monkey from creating user profiles
parents 96d3132b 55bc7dc4
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) {