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

Commit 13c9658e authored by Julia Tuttle's avatar Julia Tuttle Committed by Android (Google) Code Review
Browse files

Merge "[RONs] Add debug flag to promote all notifs to Live Updates" into main

parents 81cffe8b 2d87003c
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -558,6 +558,13 @@ flag {
    bug: "367705002"
}

flag {
    name: "debug_live_updates_promote_all"
    namespace: "systemui"
    description: "Promote all notifications to Live Updates (RONs). (For testing/debugging only, do not promote/release!)"
    bug: "404838239"
}

flag {
    name: "compose_bouncer"
    namespace: "systemui"
+6 −0
Original line number Diff line number Diff line
@@ -23,11 +23,13 @@ import android.app.Notification
import android.app.Notification.FLAG_PROMOTED_ONGOING
import androidx.annotation.ColorInt
import com.android.internal.widget.NotificationProgressModel
import com.android.systemui.Flags
import com.android.systemui.statusbar.chips.notification.shared.StatusBarNotifChips
import com.android.systemui.statusbar.notification.promoted.PromotedNotificationUi
import com.android.systemui.statusbar.notification.row.ImageResult
import com.android.systemui.statusbar.notification.row.LazyImage
import com.android.systemui.statusbar.notification.row.shared.ImageModel
import com.android.systemui.util.Compile

data class PromotedNotificationContentModels(
    /** The potentially redacted version of the content that will be exposed to the public */
@@ -238,6 +240,10 @@ data class PromotedNotificationContentModel(
         */
        @JvmStatic
        fun isPromotedForStatusBarChip(notification: Notification): Boolean {
            if (Compile.IS_DEBUG && Flags.debugLiveUpdatesPromoteAll()) {
                return true
            }

            // Notification.isPromotedOngoing checks the ui_rich_ongoing flag, but we want the
            // status bar chip to be ready before all the features behind the ui_rich_ongoing flag
            // are ready.