From e646b28e268755bdfb0850b7c74356a466430f4c Mon Sep 17 00:00:00 2001 From: Beverly Date: Thu, 2 Apr 2020 12:06:49 -0400 Subject: [PATCH] Add conversations image to People DND setting page Previously the image was only on the Conversations settings page, but it should also be included on the People settings page too. Test: manual Bug: 151845457 Change-Id: I99af85b3dcc266a1a5743755fe3cb31fc16ccfba --- res/xml/zen_mode_people_settings.xml | 6 ++++++ .../notification/zen/ZenModePeopleSettings.java | 12 +++++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/res/xml/zen_mode_people_settings.xml b/res/xml/zen_mode_people_settings.xml index 140c2414aa4..1db438871be 100644 --- a/res/xml/zen_mode_people_settings.xml +++ b/res/xml/zen_mode_people_settings.xml @@ -25,6 +25,12 @@ android:key="zen_mode_settings_category_conversations" android:title="@string/zen_mode_conversations_section_title"> + + + buildPreferenceControllers(Context context, - Lifecycle lifecycle, Application app, Fragment host, FragmentManager fragmentManager) { + Lifecycle lifecycle, Application app, Fragment host, FragmentManager fragmentManager, + NotificationBackend notificationBackend) { List controllers = new ArrayList<>(); + controllers.add(new ZenModeConversationsImagePreferenceController(context, + "zen_mode_conversations_image", lifecycle, notificationBackend)); controllers.add(new ZenModeConversationsPreferenceController(context, "zen_mode_conversations", lifecycle)); controllers.add(new ZenModeCallsPreferenceController(context, lifecycle, @@ -83,7 +88,8 @@ public class ZenModePeopleSettings extends ZenModeSettingsBase implements Indexa @Override public List createPreferenceControllers( Context context) { - return buildPreferenceControllers(context, null, null, null, null); + return buildPreferenceControllers(context, null, null, null, + null, null); } }; }