am ccbeb61a: Block monkey from creating user profiles
* commit 'ccbeb61ac21527839deb115199cbe98fa2b73c05': Block monkey from creating user profiles
This commit is contained in:
@@ -571,6 +571,9 @@ public class UserSwitcherController {
|
|||||||
cancel();
|
cancel();
|
||||||
} else {
|
} else {
|
||||||
dismiss();
|
dismiss();
|
||||||
|
if (ActivityManager.isUserAMonkey()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
UserInfo user = mUserManager.createSecondaryUser(
|
UserInfo user = mUserManager.createSecondaryUser(
|
||||||
mContext.getString(R.string.user_new_user_name), 0 /* flags */);
|
mContext.getString(R.string.user_new_user_name), 0 /* flags */);
|
||||||
if (user == null) {
|
if (user == null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user