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

Commit 86447191 authored by Steve Elliott's avatar Steve Elliott
Browse files

Prevent unnecessarily reinflation of bundle icons

Flag: com.android.systemui.notification_bundle_ui
Fixes: 425726320
Test: manual
Change-Id: I53dfc6918190486ee2d365c01da14cec6f2e9ff6
parent 7fbbe9e5
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