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

Skip to content
Commit dcf26f19 authored by Matías Hernández's avatar Matías Hernández
Browse files

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
parent 63034454
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment