Bubble API: post update when bubble notification suppression flag changes
When bubbles are expanded or if the user dismisses the notification, the notification associated with the bubble is suppressed from the shade, but still technically active / in active notification list because of the bubble. We already have a concept of this with isNotificationSuppressed on BubbleMetadata, this just ensures that the flag is properly updated when the state changes in System UI. This allows other things showing notifications (e.g. long press on launcher app icon -> see notifs) to hide or show notifications consistently with the rest of system ui. I'm re-using the flag that apps may set to suppress notifications when they send a bubble that is foreground, since its the same concept. When this flag state changes a new update is sent with the flag adjusted. Added a notification delegate method to communicate the suppression changes back to NoMan. This is piped through a listener set on Bubble objects. Test: atest NotificationManagerTest NotificationTest NotificationManagerServiceTest Bug: 131926652 Bug: 144352570 Change-Id: I25e86849858cdfe2fb81ab51b1ff09980bf70944
Loading
Please register or sign in to comment