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

Commit 0b3177b9 authored by Ibrahim Yilmaz's avatar Ibrahim Yilmaz
Browse files

[RONs] Add UI expansion logic to new content binding flow

Bug: 380901479
Test: Enable  notification_row_content_binder_refactor and ui_rich_ongoing_force_expanded
post a navigation notification and see expander is not shown
Flag: com.android.systemui.ui_rich_ongoing_force_expanded
Flag: com.android.systemui.notification_row_content_binder_refactor

Change-Id: I2e86ae70651122328f11ae8edb77cb8427481bdc
parent 09526194
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@
package com.android.systemui.statusbar.notification.row

import android.annotation.SuppressLint
import android.app.Flags
import android.app.Notification
import android.app.Notification.EXTRA_SUMMARIZED_CONTENT
import android.app.Notification.MessagingStyle
@@ -49,9 +50,9 @@ import com.android.systemui.statusbar.NotificationRemoteInputManager
import com.android.systemui.statusbar.notification.ConversationNotificationProcessor
import com.android.systemui.statusbar.notification.InflationException
import com.android.systemui.statusbar.notification.NmSummarizationUiFlag
import com.android.systemui.statusbar.notification.collection.EntryAdapter
import com.android.systemui.statusbar.notification.collection.NotificationEntry
import com.android.systemui.statusbar.notification.promoted.PromotedNotificationContentExtractor
import com.android.systemui.statusbar.notification.promoted.PromotedNotificationUiForceExpanded
import com.android.systemui.statusbar.notification.promoted.shared.model.PromotedNotificationContentModel
import com.android.systemui.statusbar.notification.row.NotificationContentView.VISIBLE_TYPE_CONTRACTED
import com.android.systemui.statusbar.notification.row.NotificationContentView.VISIBLE_TYPE_EXPANDED
@@ -1506,6 +1507,10 @@ constructor(
                entry.promotedNotificationContentModel = result.promotedContent
            }

            if (PromotedNotificationUiForceExpanded.isEnabled) {
                row.setPromotedOngoing(entry.isOngoingPromoted())
            }

            result.inflatedSmartReplyState?.let { row.privateLayout.setInflatedSmartReplyState(it) }

            setContentViewsFromRemoteViews(