Merge "Lockdown 'remove user' with user restriction in Settings for phones." into lmp-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
baffc88924
@@ -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