From 76e8fdc2bcdbd551d4ddbcc2164ed1771e29bda6 Mon Sep 17 00:00:00 2001 From: Sunny Goyal Date: Wed, 7 Apr 2021 10:16:18 -0700 Subject: [PATCH] Adding support for customize highlight region in preference > Also fixing notification dots setting not getting highlighted Bug: 184747760 Test: Manual Change-Id: Ic9c2bfbb9750bed60afc14e824181f650c8cff33 --- res/xml/launcher_preferences.xml | 9 +---- .../settings/NotificationDotsPreference.java | 6 ++++ .../settings/PreferenceHighlighter.java | 33 +++++++++++++++---- .../launcher3/settings/SettingsActivity.java | 4 ++- 4 files changed, 37 insertions(+), 15 deletions(-) diff --git a/res/xml/launcher_preferences.xml b/res/xml/launcher_preferences.xml index e4bea508b3..8195cc1997 100644 --- a/res/xml/launcher_preferences.xml +++ b/res/xml/launcher_preferences.xml @@ -22,14 +22,7 @@ android:key="pref_icon_badging" android:title="@string/notification_dots_title" android:persistent="false" - android:widgetLayout="@layout/notification_pref_warning" > - - - - - + android:widgetLayout="@layout/notification_pref_warning" />