commit | dcf26f1938a20d97551329abb91721b5d13bfd4e | [log] [tgz] |
---|---|---|
author | Matías Hernández <matiashe@google.com> | Tue Nov 19 15:18:05 2024 +0000 |
committer | Matías Hernández <matiashe@google.com> | Tue Nov 19 15:18:05 2024 +0000 |
tree | 7fa0c03f35d9f9fbe7b12062821b727cd90c87c6 | |
parent | 6303445480cf440f7f9f2c68da2d313af4b8f4c9 [diff] |
Return default notification policy when calling from a user with no ZenModeConfig Although this should be super rare, it can happen more often (with modes_multiuser) if we never got an onUserSwitched event for that user. Most callsites don't expect to get a null Policy, so even though null is technically allowed, returning _something_ is safer. Bug: 323163267 Test: atest ZenModeHelperTest Flag: android.app.modes_multiuser Change-Id: Ie9ec86037f79bbc0bfe87679b7791979fdc2532d