[Media ML] Replace observing changes in Settings value
Currently, MediaSessionService observes the
ENABLED_NOTIFICATION_LISTENERS value in Settings to be notified
when a previously "enabled" NotificationListener becomes "disabled".
Instead, this CL adds a new broadcast intent action that
NotificationManagerService can use to notify MediaSessionService
whenever the enabled value of a notification listener changes.
Bug: 160762852, Bug: 147019349
Test: Go to Settings > Apps & Notifications > Special app access
> Notification access
and check if allowing/disallowing Notification access for any
app causes onEnabledChanged to be called.
Change-Id: I3aefa40083fedb78214ae884c7cccaf8de206663
Loading
Please register or sign in to comment