diff options
| author | 2024-08-08 21:22:48 +0000 | |
|---|---|---|
| committer | 2024-08-08 21:22:48 +0000 | |
| commit | b76a52d64d6372022b7c8182002b65f653e5b093 (patch) | |
| tree | 6654f7edbc71c19a8015fc965140e6bd4da03a98 | |
| parent | e156b42833b3e9158180cf612dbe06c7d5d584e0 (diff) | |
[SB][Call chip] Add distinctUntilChanged to ongoingCallNotif flow.
Bug: 357170372
Flag: com.android.systemui.status_bar_use_repos_for_call_chip
Test: Start ongoing call -> verify chip still shows
Test: atest ActiveNotificationsInteractorTest
OngoingCallControllerViaRepoTest
Change-Id: I51bcf9f44e362ec7ea5045ed7ecd232b13fe609d
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/notification/domain/interactor/ActiveNotificationsInteractor.kt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/domain/interactor/ActiveNotificationsInteractor.kt b/packages/SystemUI/src/com/android/systemui/statusbar/notification/domain/interactor/ActiveNotificationsInteractor.kt index 1027bc98ef47..9b382e61b2e3 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/domain/interactor/ActiveNotificationsInteractor.kt +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/domain/interactor/ActiveNotificationsInteractor.kt @@ -89,6 +89,7 @@ constructor( .filter { it.callType == CallType.Ongoing } .minByOrNull { it.whenTime } } + .distinctUntilChanged() .flowOn(backgroundDispatcher) /** Are any notifications being actively presented in the notification stack? */ |