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

Skip to content
Commit 077d1907 authored by Matías Hernández's avatar Matías Hernández Committed by Yuri Lin
Browse files

Emulate Zen rule policy inheritance until edit UI is available

Before MODES_API, rules without a policy (or with a partially specified policy) would inherit the manual DND policy settings when calculating the consolidated policy. This change temporarily restores part of this behavior, because users have come to expect it (even though it's not applied consistently). In order to do so, whenever the manual policy is modified, we update the policies of rules that match either the default or previous manual policy.

This becomes obsolete with MODES_UI since the user can then view and edit those policies, and it will be clear that the NotificationPolicy only applies to manual DND (and this is also the reason that don't apply the new manual policy to rules that have their own policy pages today).

Flag: android.app.modes_api
Fixes: 337193321
Test: atest ZenModeHelperTest NotificationManagerZenTest
Change-Id: I2217b1f251608a1eea54072720b50b08eb3b4d39
parent 41f15711
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