summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Caitlin Shkuratov <caitlinshk@google.com> 2024-11-11 22:01:20 +0000
committer Caitlin Shkuratov <caitlinshk@google.com> 2024-11-21 15:42:40 +0000
commit7a32c912af33f2d950fd5f4a978b00b47da6368f (patch)
treed7d0de0c541b1de02c6a4634aead604f0c74fdeb /api/api.go
parent4d0fcaf7847aa85a53b1b14ef0e668777befe1c6 (diff)
[SB][Notifs] Create individual interactors for each status bar chip.
This CL defines a new `SingleNotificationChipInteractor` class. For each promoted notification, we create a `SingleNotificationChipInteractor` instance inside `StatusBarNotificationChipsInteractor`. We keep track of all those instances, and then the parent `StatusBarNotificationChipsInteractor` accumulates the state across all interactors and emits that accumulation as a list of actually-valid chips. This is pretty similar to how there's a top-level MobileIconsInteractor to keep track of all the subscriptions, and then individual `MobileIconInteractor` instances for each individual subscription. One reason to do this is that a future CL will hide a notification chip if that notification's app is currently open, and that should happen on an individual chip basis. That'll be much easier to implement if `SingleNotificationChipInteractor` exists. Bug: 364653005 Flag: com.android.systemui.status_bar_notification_chips Test: Start a promoted ongoing notification -> verify chip appears. Dismiss the promoted notification -> verify chip disappears Test: atest SingleNotificationChipInteractorTest StatusBarNotificationChipsInteractorTest Change-Id: I3f47da63beaeae93b2b11c8ae1be516e2474cf11
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions