Merge "Controls UI - Fix icon tint for custom icons" into rvc-dev

This commit is contained in:
Matt Pietal
2020-06-22 15:11:47 +00:00
committed by Android (Google) Code Review

View File

@@ -413,7 +413,9 @@ class ControlViewHolder(
control?.getCustomIcon()?.let { control?.getCustomIcon()?.let {
// do not tint custom icons, assume the intended icon color is correct // do not tint custom icons, assume the intended icon color is correct
icon.imageTintList = null if (icon.imageTintList != null) {
icon.imageTintList = null
}
icon.setImageIcon(it) icon.setImageIcon(it)
} ?: run { } ?: run {
if (drawable is StateListDrawable) { if (drawable is StateListDrawable) {