Skip to content
Snippets Groups Projects
Commit 3e0736d6 authored by Jeff DeCew's avatar Jeff DeCew
Browse files

Trace setRenderedList

Bug: 318275818
Test: NA
Flag: ACONFIG com.android.systemui.notifications_icon_container_refactor TEAMFOOD
Change-Id: I71b9c89fffce07e688be421961d041d26897dd0e
parent 315f5137
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,7 @@ package com.android.systemui.statusbar.notification.domain.interactor
import android.graphics.drawable.Icon
import android.util.ArrayMap
import com.android.app.tracing.traceSection
import com.android.systemui.statusbar.notification.collection.GroupEntry
import com.android.systemui.statusbar.notification.collection.ListEntry
import com.android.systemui.statusbar.notification.collection.NotificationEntry
......@@ -44,10 +45,12 @@ constructor(
* Sets the current list of rendered notification entries as displayed in the notification list.
*/
fun setRenderedList(entries: List<ListEntry>) {
repository.activeNotifications.update { existingModels ->
buildActiveNotificationsStore(existingModels, sectionStyleProvider) {
entries.forEach(::addListEntry)
setRankingsMap(entries)
traceSection("RenderNotificationListInteractor.setRenderedList") {
repository.activeNotifications.update { existingModels ->
buildActiveNotificationsStore(existingModels, sectionStyleProvider) {
entries.forEach(::addListEntry)
setRankingsMap(entries)
}
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment