refs #5998 modify imageError

This commit is contained in:
Sergio De la torre 2023-08-31 12:13:11 +02:00
parent c90429e557
commit cfe7a23ccd
1 changed files with 5 additions and 16 deletions

View File

@ -354,22 +354,11 @@ class SaleAdapter(
itemArticleQuantityPicked.visibility = View.VISIBLE itemArticleQuantityPicked.visibility = View.VISIBLE
itemArticleQuantityLine3.visibility = View.VISIBLE itemArticleQuantityLine3.visibility = View.VISIBLE
if (type != SACADOR) { if (type != SACADOR) {
refs
//Tarea 5998 val colorRes =
imageErrorMessage.imageTintList = if (sale.hasMistake) { if (sale.hasMistake) R.color.verdnatura_red_salix else R.color.verdnatura_black
ColorStateList.valueOf( imageErrorMessage.imageTintList =
getColor( ColorStateList.valueOf(getColor(context!!, colorRes))
context!!, R.color.verdnatura_red_salix
)
)
} else {
ColorStateList.valueOf(
getColor(
context!!, R.color.verdnatura_black
)
)
}
imageErrorMessage.visibility = View.VISIBLE imageErrorMessage.visibility = View.VISIBLE
} else { } else {
imageErrorMessage.visibility = View.INVISIBLE imageErrorMessage.visibility = View.INVISIBLE