Single-user restrictions
New restrictions panel for restricting list of available apps for the user.
Apps that support restrictions can also be configured here.
Restrictions screen is PIN protected and will ask you to create a PIN the
first time you use it.
Change-Id: I7a5267df4272521ad80e6a8b6a18932d07179eb8
diff --git a/src/com/android/settings/Settings.java b/src/com/android/settings/Settings.java
index 51e1a95..24ffc50 100644
--- a/src/com/android/settings/Settings.java
+++ b/src/com/android/settings/Settings.java
@@ -116,6 +116,7 @@
R.id.location_settings,
R.id.security_settings,
R.id.language_settings,
+ R.id.restriction_settings,
R.id.user_settings,
R.id.account_settings,
R.id.account_add,
@@ -486,6 +487,10 @@
if (um.hasUserRestriction(UserManager.DISALLOW_MODIFY_ACCOUNTS)) {
target.remove(i);
}
+ } else if (id == R.id.restriction_settings) {
+ if (um.isLinkedUser()) {
+ target.remove(i);
+ }
}
if (i < target.size() && target.get(i) == header