am baffc889
: Merge "Lockdown \'remove user\' with user restriction in Settings for phones." into lmp-dev
* commit 'baffc8892440bcdf43c90aa74e301bd3d16a795a': Lockdown 'remove user' with user restriction in Settings for phones.
This commit is contained in:
@@ -95,6 +95,9 @@ public class UserDetailsSettings extends SettingsPreferenceFragment
|
||||
mPhonePref.setChecked(
|
||||
!mDefaultGuestRestrictions.getBoolean(UserManager.DISALLOW_OUTGOING_CALLS));
|
||||
}
|
||||
if (mUserManager.hasUserRestriction(UserManager.DISALLOW_REMOVE_USER)) {
|
||||
removePreference(KEY_REMOVE_USER);
|
||||
}
|
||||
mPhonePref.setOnPreferenceChangeListener(this);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user