Merge "Controls UI - Fix heating color" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
75de521133
@@ -56,13 +56,12 @@ data class RenderInfo(
|
|||||||
enabled: Boolean,
|
enabled: Boolean,
|
||||||
offset: Int = 0
|
offset: Int = 0
|
||||||
): RenderInfo {
|
): RenderInfo {
|
||||||
val (fg, bg) = deviceColorMap.getValue(deviceType)
|
val key = if (offset > 0) {
|
||||||
|
|
||||||
val iconKey = if (offset > 0) {
|
|
||||||
deviceType * BUCKET_SIZE + offset
|
deviceType * BUCKET_SIZE + offset
|
||||||
} else deviceType
|
} else deviceType
|
||||||
|
|
||||||
val iconState = deviceIconMap.getValue(iconKey)
|
val (fg, bg) = deviceColorMap.getValue(key)
|
||||||
|
val iconState = deviceIconMap.getValue(key)
|
||||||
val resourceId = iconState[enabled]
|
val resourceId = iconState[enabled]
|
||||||
var icon: Drawable?
|
var icon: Drawable?
|
||||||
if (resourceId == APP_ICON_ID) {
|
if (resourceId == APP_ICON_ID) {
|
||||||
|
|||||||
Reference in New Issue
Block a user