Fix an issue where the bubble wasn't opening
If a bubble had been dismissed, but the notif was still visible,
when the user clicks on that notif, the onNotificationClick event
can occur before onNotificationBubbleChanged.
This means that we might remove/cancel a notification that is
about to become a bubble, so when onNotificationBubbleChanged is
called there isn't a record to create the bubble with.
This CL fixes this by skipping the removal if it's a bubble notif
where the bubble has been dismissed & the notif canBubble.
Test: atest NotificationManagerServiceTest
Bug: 189149153
Bug: 183732510
Change-Id: I366c3a317fb6d4c38e7547c31ff9d47dc9b4846e
2 files changed