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

Commit f924ab65 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Prevent unnecessarily reinflation of bundle icons" into main

parents 1a5abff5 86447191
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -74,13 +74,13 @@ constructor(

    /** Build view and controller for BundleEntry. */
    fun inflateBundleEntry(bundleEntry: BundleEntry) {
        iconManager.createIcons(context, bundleEntry)
        debugBundleLog(TAG) { "inflateBundleEntry: ${bundleEntry.key}" }
        if (keyToControllerMap.containsKey(bundleEntry.key)) {
            // Skip if bundle is inflating or inflated.
            debugBundleLog(TAG) { "already in map: ${bundleEntry.key}" }
            return
        }
        iconManager.createIcons(context, bundleEntry)
        val parent: ViewGroup = listContainer.getViewParentForNotification()
        val inflationFinishedListener: (ExpandableNotificationRow) -> Unit = { row ->
            // A subset of NotificationRowBinderImpl.inflateViews