Merge "Controls UI - Fix icon tint for custom icons" into rvc-dev am: 2020f93a13 am: 720f686fe3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11953738 Change-Id: I0e0aa00330cfee041a3282b0774ab360e766ed74
This commit is contained in:
@@ -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
|
||||||
|
if (icon.imageTintList != null) {
|
||||||
icon.imageTintList = null
|
icon.imageTintList = null
|
||||||
|
}
|
||||||
icon.setImageIcon(it)
|
icon.setImageIcon(it)
|
||||||
} ?: run {
|
} ?: run {
|
||||||
if (drawable is StateListDrawable) {
|
if (drawable is StateListDrawable) {
|
||||||
|
|||||||
Reference in New Issue
Block a user