diff options
author | Amith Yamasani <yamasani@google.com> | 2014-10-06 14:20:28 -0700 |
---|---|---|
committer | Amith Yamasani <yamasani@google.com> | 2014-10-06 18:24:32 -0700 |
commit | aa6634eaca707f7cbf5f5a1d75b90d8d775d254b (patch) | |
tree | 54b60920e07fad2f431970566eb427acfbe8ba64 /packages/SystemUI | |
parent | 71c4578def00a5a4b9e159fd1ab88e616bc7e159 (diff) | |
download | frameworks_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.java | 2 |
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 |