summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2014-10-07 17:11:33 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-10-07 17:11:34 +0000
commit41bb3455e44dc8fde4569bbfd56fa20c6da8a27d (patch)
treed6c0fa9a305a64adc70aef79a7c9c2b1b0e0fe73 /packages/SystemUI
parent0d334365c6123388a0df81438b82122be29d19ab (diff)
parentaa6634eaca707f7cbf5f5a1d75b90d8d775d254b (diff)
downloadframeworks_base-41bb3455e44dc8fde4569bbfd56fa20c6da8a27d.zip
frameworks_base-41bb3455e44dc8fde4569bbfd56fa20c6da8a27d.tar.gz
frameworks_base-41bb3455e44dc8fde4569bbfd56fa20c6da8a27d.tar.bz2
Merge "Set the default user restrictions to disallow calling and sms" into lmp-dev
Diffstat (limited to 'packages/SystemUI')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/policy/UserSwitcherController.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/policy/UserSwitcherController.java b/packages/SystemUI/src/com/android/systemui/statusbar/policy/UserSwitcherController.java
index bbe6622..eb808c2 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/policy/UserSwitcherController.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/policy/UserSwitcherController.java
@@ -571,7 +571,7 @@ public class UserSwitcherController {
cancel();
} else {
dismiss();
- UserInfo user = mUserManager.createUser(
+ UserInfo user = mUserManager.createSecondaryUser(
mContext.getString(R.string.user_new_user_name), 0 /* flags */);
if (user == null) {
// Couldn't create user, most likely because there are too many, but we haven't