summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Caitlin Shkuratov <caitlinshk@google.com> 2024-08-08 21:22:48 +0000
committer Caitlin Shkuratov <caitlinshk@google.com> 2024-08-08 21:22:48 +0000
commitb76a52d64d6372022b7c8182002b65f653e5b093 (patch)
tree6654f7edbc71c19a8015fc965140e6bd4da03a98
parente156b42833b3e9158180cf612dbe06c7d5d584e0 (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.kt1
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? */