UI refinement of highlighted menu entry for large screen

- Add a new highlight background drawable
- Add two homepage specific preferences for the new layout design

Fix: 207079684
Test: visual
Change-Id: I20c80da090a03129bffa845d443ee5d1ad13b97b
This commit is contained in:
Jason Chiu
2021-11-19 14:35:27 +08:00
parent 83a8b76ec2
commit 90eef24080
9 changed files with 243 additions and 31 deletions

View File

@@ -529,8 +529,7 @@ public abstract class DashboardFragment extends SettingsPreferenceFragment
mBlockerController.countDown(controller.getPreferenceKey());
}
@VisibleForTesting
Preference createPreference(Tile tile) {
protected Preference createPreference(Tile tile) {
return tile instanceof ProviderTile
? new SwitchPreference(getPrefContext())
: tile.hasSwitch()