refs #5998 modify imageError
This commit is contained in:
parent
c90429e557
commit
cfe7a23ccd
|
@ -354,22 +354,11 @@ class SaleAdapter(
|
|||
itemArticleQuantityPicked.visibility = View.VISIBLE
|
||||
itemArticleQuantityLine3.visibility = View.VISIBLE
|
||||
if (type != SACADOR) {
|
||||
|
||||
//Tarea 5998
|
||||
imageErrorMessage.imageTintList = if (sale.hasMistake) {
|
||||
ColorStateList.valueOf(
|
||||
getColor(
|
||||
context!!, R.color.verdnatura_red_salix
|
||||
)
|
||||
)
|
||||
} else {
|
||||
ColorStateList.valueOf(
|
||||
getColor(
|
||||
context!!, R.color.verdnatura_black
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
refs
|
||||
val colorRes =
|
||||
if (sale.hasMistake) R.color.verdnatura_red_salix else R.color.verdnatura_black
|
||||
imageErrorMessage.imageTintList =
|
||||
ColorStateList.valueOf(getColor(context!!, colorRes))
|
||||
imageErrorMessage.visibility = View.VISIBLE
|
||||
} else {
|
||||
imageErrorMessage.visibility = View.INVISIBLE
|
||||
|
|
Loading…
Reference in New Issue