* commit 'fe44098dd126af1a19fe3e29e35506a07bc05c62': Remove Limited users category if empty
This commit is contained in:
@@ -501,6 +501,12 @@ public class UserSettings extends SettingsPreferenceFragment
|
||||
boolean moreUsers = mUserManager.getMaxSupportedUsers() > users.size();
|
||||
mAddRestrictedUser.setEnabled(moreUsers);
|
||||
mAddTrustedUser.setEnabled(moreUsers);
|
||||
// Remove the limited users category if there aren't other limited users.
|
||||
if (!mIsOwner) {
|
||||
if (mLimitedUserListCategory.getPreferenceCount() == 0) {
|
||||
removePreference(KEY_LIMITED_USER_LIST);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void loadIconsAsync(List<Integer> missingIcons) {
|
||||
|
Reference in New Issue
Block a user