Heads-up: Fix up layout for blacklisted/stoplisted app lists

When apps were added to blacklist/stoplist, there was nothing
in place to help things look halfway decent. We added a layout
in order to accomplish a nicer, cleaner looking list.

Before: https://i.imgur.com/7muwWZ7.jpg

After:  https://i.imgur.com/DzgVOjX.jpg

Signed-off-by: calebcabob <calphonic@gmail.com>
Change-Id: Ic853817f7cf1765a282324a23af11f72666e2670
Signed-off-by: SagarMakhar <sagarmakhar@gmail.com>
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
calebcabob
2020-03-31 20:08:13 -04:00
committed by Hưng Phan
parent ed637852d0
commit 25cab71ee6
2 changed files with 71 additions and 0 deletions

View File

@@ -336,6 +336,7 @@ public class HeadsUpSettings extends SettingsPreferenceFragment
pref.setTitle(info.applicationInfo.loadLabel(mPackageManager));
pref.setIcon(info.applicationInfo.loadIcon(mPackageManager));
pref.setPersistent(false);
pref.setLayoutResource(R.layout.headsup_preference_applist);
pref.setOnPreferenceClickListener(this);
return pref;
}