Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 361033ff authored by Jeff DeCew's avatar Jeff DeCew Committed by Android (Google) Code Review
Browse files

Merge "Trace setRenderedList" into main

parents 1c10a8c2 3e0736d6
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -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,6 +45,7 @@ constructor(
     * Sets the current list of rendered notification entries as displayed in the notification list.
     */
    fun setRenderedList(entries: List<ListEntry>) {
        traceSection("RenderNotificationListInteractor.setRenderedList") {
            repository.activeNotifications.update { existingModels ->
                buildActiveNotificationsStore(existingModels, sectionStyleProvider) {
                    entries.forEach(::addListEntry)
@@ -52,6 +54,7 @@ constructor(
            }
        }
    }
}

private fun buildActiveNotificationsStore(
    existingModels: ActiveNotificationsStore,