Skip to content

Commit

Permalink
Remove "Add users from lock screen" setting
Browse files Browse the repository at this point in the history
  • Loading branch information
quh4gko8 authored and thestinger committed Jul 4, 2023
1 parent c2260ff commit 26ac8b8
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,7 @@ public void updateState(Preference preference) {

@Override
public int getAvailabilityStatus() {
if (!mUserCaps.isAdmin()) {
return DISABLED_FOR_USER;
} else if (mUserCaps.disallowAddUser() || mUserCaps.disallowAddUserSetByAdmin()) {
return DISABLED_FOR_USER;
} else {
return mUserCaps.mUserSwitcherEnabled ? AVAILABLE : CONDITIONALLY_UNAVAILABLE;
}
return UNSUPPORTED_ON_DEVICE;
}

@Override
Expand Down

0 comments on commit 26ac8b8

Please sign in to comment.