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

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

[kairos] fix connectivity icon tint

Flag: com.android.systemui.status_bar_mobile_icon_kairos
Bug: 383172066
Test: atest
Change-Id: I26f8070aed8d1ca664330a86caa840dbf255ea35
parent a547cf76
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -238,15 +238,16 @@ object MobileIconBinderKairos {
                    Pair(background != null, colors)
                }
                .observe { (hasBackground, colors) ->
                    // Tint will invert when this bit changes
                    val tint = ColorStateList.valueOf(colors.tint)
                    val contrast = ColorStateList.valueOf(colors.contrast)
                    iconView.imageTintList = tint
                    // Tint will invert when this bit changes
                    if (hasBackground) {
                        networkTypeContainer.backgroundTintList = tint
                        networkTypeView.imageTintList = ColorStateList.valueOf(colors.contrast)
                        networkTypeView.imageTintList = contrast
                    } else {
                        networkTypeView.imageTintList = tint
                    }

                    roamingView.imageTintList = tint
                    activityIn.imageTintList = tint
                    activityOut.imageTintList = tint