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

Commit 38180a45 authored by Matt Pietal's avatar Matt Pietal
Browse files

Controls UI - Fix heating color

Was not using the activeMode for the color offset

Bug: 153459803
Test: manual
Change-Id: I9e0e7a81826a3a4a39ee20bd09ecfe47d12035ed
parent bd745f76
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -56,13 +56,12 @@ data class RenderInfo(
            enabled: Boolean,
            offset: Int = 0
        ): RenderInfo {
            val (fg, bg) = deviceColorMap.getValue(deviceType)

            val iconKey = if (offset > 0) {
            val key = if (offset > 0) {
                deviceType * BUCKET_SIZE + offset
            } else deviceType

            val iconState = deviceIconMap.getValue(iconKey)
            val (fg, bg) = deviceColorMap.getValue(key)
            val iconState = deviceIconMap.getValue(key)
            val resourceId = iconState[enabled]
            var icon: Drawable?
            if (resourceId == APP_ICON_ID) {