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

Commit ccbeb61a authored by Guang Zhu's avatar Guang Zhu
Browse files

Block monkey from creating user profiles

Bug: 17721767
Change-Id: Ibf686d6aa5da29411ee23f8ce6826ed93c1fa970
parent 7b4a38b1
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) {