am 22f6f30c: am 5cd90706: am 871cdeeb: am 55bc7dc4: am ccbeb61a: Block monkey from creating user profiles

* commit '22f6f30c8ecc3bda674fe7a0c3c5c56d3e10f66a':
  Block monkey from creating user profiles
This commit is contained in:
Guang Zhu
2014-10-22 21:26:39 +00:00
committed by Android Git Automerger

View File

@@ -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) {