diff options
| author | 2024-01-11 20:13:06 +0100 | |
|---|---|---|
| committer | 2024-01-17 11:59:43 +0000 | |
| commit | 4f4ad6bf07b2548f503b4ff57c0f55848fc1f2c0 (patch) | |
| tree | d93d19345e1260a1cbc185fc5999d40be611e54e /libs/input/SpriteController.cpp | |
| parent | 2bb60eb640d283eede447d0d58a289e45be6e227 (diff) | |
Respect user customization for implicit Zen rules
For both setInterruptionFilter() and setNotificationPolicy(), we ignore the app-supplied value only if the user has customized that specific part of the rule (interruption filter and ZenPolicy respectively). This is to make the API behavior a bit less surprising. (In particular, rules with a customized interruption filter may not exist, depending on how we implement MODES_UI).
Note that this blocking is more localized than the one for updateAutomaticZenRule() (where ~all updates are blocked for a rule customized in any way).
Fixes: 319242222
Test: atest ZenModeHelperTest
Change-Id: Ie6ab94c73f4675b2432b0b130c2ea54616035a5f
Diffstat (limited to 'libs/input/SpriteController.cpp')
0 files changed, 0 insertions, 0 deletions