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

Commit 9ae35515 authored by Jeff DeCew's avatar Jeff DeCew
Browse files

[RONs] bind iconLevel to small icon view

Fixes: 369151941
Test: atest SystemUITests
Flag: com.android.systemui.aod_ui_rich_ongoing
Change-Id: I5641b7b45be100d58a4fe19f92702799ae24c6aa
parent affb471a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -230,6 +230,7 @@ private class AODPromotedNotificationViewUpdater(root: View) {
    ) {
        // Icon binding must be called in this order
        updateImageView(icon, content.smallIcon)
        icon?.setImageLevel(content.iconLevel)
        icon?.setBackgroundColor(Background.colorInt)
        icon?.originalIconColor = PrimaryText.colorInt

+1 −0
Original line number Diff line number Diff line
@@ -96,6 +96,7 @@ constructor(
        contentBuilder.wasPromotedAutomatically =
            notification.extras.getBoolean(EXTRA_WAS_AUTOMATICALLY_PROMOTED, false)
        contentBuilder.smallIcon = notification.smallIconModel(imageModelProvider)
        contentBuilder.iconLevel = notification.iconLevel
        contentBuilder.appName = notification.loadHeaderAppName(context)
        contentBuilder.subText = notification.subText()
        contentBuilder.time = notification.extractWhen()
+3 −0
Original line number Diff line number Diff line
@@ -38,6 +38,7 @@ data class PromotedNotificationContentModel(
     */
    val wasPromotedAutomatically: Boolean,
    val smallIcon: ImageModel?,
    val iconLevel: Int,
    val appName: CharSequence?,
    val subText: CharSequence?,
    val shortCriticalText: String?,
@@ -67,6 +68,7 @@ data class PromotedNotificationContentModel(
    class Builder(val key: String) {
        var wasPromotedAutomatically: Boolean = false
        var smallIcon: ImageModel? = null
        var iconLevel: Int = 0
        var appName: CharSequence? = null
        var subText: CharSequence? = null
        var time: When? = null
@@ -94,6 +96,7 @@ data class PromotedNotificationContentModel(
                identity = Identity(key, style),
                wasPromotedAutomatically = wasPromotedAutomatically,
                smallIcon = smallIcon,
                iconLevel = iconLevel,
                appName = appName,
                subText = subText,
                shortCriticalText = shortCriticalText,