Remove Restrictions UI
Bug: 10200097 Change-Id: Ifaa8aaa9aa5ad17a948bf18f184a131295112a30
This commit is contained in:
@@ -136,7 +136,6 @@ public class Settings extends PreferenceActivity
|
||||
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,
|
||||
@@ -557,11 +556,6 @@ public class Settings extends PreferenceActivity
|
||||
if (um.hasUserRestriction(UserManager.DISALLOW_MODIFY_ACCOUNTS)) {
|
||||
target.remove(i);
|
||||
}
|
||||
} else if (id == R.id.restriction_settings) {
|
||||
if (um.isLinkedUser()
|
||||
|| um.hasUserRestriction(UserManager.DISALLOW_APP_RESTRICTIONS)) {
|
||||
target.remove(i);
|
||||
}
|
||||
}
|
||||
|
||||
if (i < target.size() && target.get(i) == header
|
||||
|
Reference in New Issue
Block a user