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

Commit d172f6d3 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Controls UI - Fix heating color" into rvc-dev am: 75de5211 am: ba402fbc

Change-Id: I66a30b53f9b84894fa4f30cea16f8408261d0630
parents 5e9c2b12 ba402fbc
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) {