Adding support for customize highlight region in preference

> Also fixing notification dots setting not getting highlighted

Bug: 184747760
Test: Manual
Change-Id: Ic9c2bfbb9750bed60afc14e824181f650c8cff33
This commit is contained in:
Sunny Goyal
2021-04-07 10:16:18 -07:00
parent fc3bc6098f
commit 76e8fdc2bc
4 changed files with 37 additions and 15 deletions

View File

@@ -85,6 +85,12 @@ public class NotificationDotsPreference extends Preference
Settings.Secure.getUriFor(NOTIFICATION_ENABLED_LISTENERS),
false, mListenerListObserver);
updateUI();
// Update intent
Bundle extras = new Bundle();
extras.putString(EXTRA_FRAGMENT_ARG_KEY, "notification_badging");
setIntent(new Intent("android.settings.NOTIFICATION_SETTINGS")
.putExtra(EXTRA_SHOW_FRAGMENT_ARGS, extras));
}
private void updateUI() {