refs #5998 modify imageError
This commit is contained in:
parent
c90429e557
commit
cfe7a23ccd
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue