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

Change-Id: I0ec64a8311eb8e547a530cbd3a814d3797a2c653
This commit is contained in:
TreeHugger Robot
2020-04-08 19:06:46 +00:00
committed by Automerger Merge Worker

View File

@@ -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) {