Reduce gap above user list in multiuser settings.

This fixes a large gap above the user list, which occurred because
a PreferenceCategory was used for this with a blank title.

Bug: 224659273
Test: Install and inspect
Change-Id: I82c4491cc6a5111c6517b2845b44632e0859e1b6
This commit is contained in:
Oli Lan
2022-03-16 14:57:00 +00:00
parent 45436a025c
commit 5f56a273c4

View File

@@ -1102,6 +1102,7 @@ public class UserSettings extends SettingsPreferenceFragment
mUserListCategory.setTitle(R.string.user_list_title); mUserListCategory.setTitle(R.string.user_list_title);
} else { } else {
mUserListCategory.setTitle(null); mUserListCategory.setTitle(null);
mUserListCategory.setLayoutResource(R.layout.empty_view);
} }
// Remove everything from mUserListCategory and add new users. // Remove everything from mUserListCategory and add new users.