Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 97a25379 authored by Yuri Lin's avatar Yuri Lin
Browse files

Add "allow channels" to ZenPolicy, NM.Policy, ZenModeConfig

The primary functionality is in ZenPolicy, where the enum for types of channels that may be allowed (unset, priority, none) is defined.

The setting has to be included in NM.Policy and ZenModeConfig as well to allow it to apply for the consolidated policy and the manual rule.

Updates ZenModeFiltering to respect this value when determining whether to intercept a given notification, and PreferencesHelper and ZenModeConfig to accurately report whether any channels are actually potentially bypassing DND given the existence of priority channels and the value of whether channels are permitted.

Bug: 308672314
Bug: 300477976
Test: atest ZenPolicyTest, ZenModeConfigTest, ZenModeDiffTest, ZenModeHelperTest, ZenModeFilteringTest, PreferencesHelperTest
Test: (cts) NotificationManagerZenTest, ZenPolicyTest

Change-Id: Ia774852770df08fb5493be429819b2be39e201de
parent c02a454c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment