summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2014-10-06 14:20:28 -0700
committerAmith Yamasani <yamasani@google.com>2014-10-06 18:24:32 -0700
commitaa6634eaca707f7cbf5f5a1d75b90d8d775d254b (patch)
tree54b60920e07fad2f431970566eb427acfbe8ba64 /packages/SystemUI
parent71c4578def00a5a4b9e159fd1ab88e616bc7e159 (diff)
downloadframeworks_base-aa6634eaca707f7cbf5f5a1d75b90d8d775d254b.zip
frameworks_base-aa6634eaca707f7cbf5f5a1d75b90d8d775d254b.tar.gz
frameworks_base-aa6634eaca707f7cbf5f5a1d75b90d8d775d254b.tar.bz2
Set the default user restrictions to disallow calling and sms
When creating a user via the UI, disallow phone calls and SMS by default. Primary user must explicitly enable it via Settings. Bug: 17832802 Change-Id: I18cad4be8493ddc8890b5d90da2df256cb3f1ec9
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