Merge "Allow admins to remove users."
This commit is contained in:
committed by
Android (Google) Code Review
commit
6987152c47
@@ -111,7 +111,7 @@ public class UserDetailsSettings extends SettingsPreferenceFragment
|
|||||||
@Override
|
@Override
|
||||||
public boolean onPreferenceClick(Preference preference) {
|
public boolean onPreferenceClick(Preference preference) {
|
||||||
if (preference == mRemoveUserPref) {
|
if (preference == mRemoveUserPref) {
|
||||||
if (mUserManager.isAdminUser()) {
|
if (!mUserManager.isAdminUser()) {
|
||||||
throw new RuntimeException("Only admins can remove a user");
|
throw new RuntimeException("Only admins can remove a user");
|
||||||
}
|
}
|
||||||
showDialog(DIALOG_CONFIRM_REMOVE);
|
showDialog(DIALOG_CONFIRM_REMOVE);
|
||||||
|
Reference in New Issue
Block a user