diff options
| author | 2024-11-19 15:18:05 +0000 | |
|---|---|---|
| committer | 2024-11-19 15:18:05 +0000 | |
| commit | dcf26f1938a20d97551329abb91721b5d13bfd4e (patch) | |
| tree | 7fa0c03f35d9f9fbe7b12062821b727cd90c87c6 /libs/androidfw/AttributeResolution.cpp | |
| 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
Diffstat (limited to 'libs/androidfw/AttributeResolution.cpp')
0 files changed, 0 insertions, 0 deletions