From 8c2312d8ab5f218b5fb2245aaf12bb67f8643b3c Mon Sep 17 00:00:00 2001 From: Julia Reynolds Date: Thu, 3 Oct 2024 10:01:24 -0400 Subject: [PATCH] Update dependent logic in modes vis page If the list isn't visible, we shouldn't allow HUNs to be Test: ZenModeNotifVisFragmentTest, manual Fixes: 367222597 Flag: EXEMPT bugfix Change-Id: I1dc72061dfb99aed8b644c703214b17d62b0532e --- .../settings/notification/modes/ZenModeNotifVisFragment.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/android/settings/notification/modes/ZenModeNotifVisFragment.java b/src/com/android/settings/notification/modes/ZenModeNotifVisFragment.java index d1bd493482a..3e51462aefc 100644 --- a/src/com/android/settings/notification/modes/ZenModeNotifVisFragment.java +++ b/src/com/android/settings/notification/modes/ZenModeNotifVisFragment.java @@ -38,7 +38,8 @@ public class ZenModeNotifVisFragment extends ZenModeFragmentBase { prefControllers.add(new ZenModeNotifVisPreferenceController(context, "zen_effect_light", ZenPolicy.VISUAL_EFFECT_LIGHTS, null, mBackend)); prefControllers.add(new ZenModeNotifVisPreferenceController(context, - "zen_effect_peek", ZenPolicy.VISUAL_EFFECT_PEEK, null, mBackend)); + "zen_effect_peek", ZenPolicy.VISUAL_EFFECT_PEEK, + new int[] {ZenPolicy.VISUAL_EFFECT_NOTIFICATION_LIST}, mBackend)); prefControllers.add(new ZenModeNotifVisPreferenceController(context, "zen_effect_status", ZenPolicy.VISUAL_EFFECT_STATUS_BAR, new int[] {ZenPolicy.VISUAL_EFFECT_NOTIFICATION_LIST}, mBackend));