refs #6921 feat:deliveryNotes
This commit is contained in:
parent
f8fe66c090
commit
0ae481ee4a
|
@ -1,5 +1,7 @@
|
|||
package es.verdnatura.presentation.view.feature.delivery.adapters
|
||||
|
||||
import android.graphics.Color
|
||||
import android.graphics.PorterDuff
|
||||
import android.view.LayoutInflater
|
||||
import android.view.View.INVISIBLE
|
||||
import android.view.ViewGroup
|
||||
|
@ -75,23 +77,23 @@ class TicketAdapter(
|
|||
binding.apply {
|
||||
|
||||
if (!item.ticketObservation.isNullOrEmpty()) {
|
||||
note.setColorFilter(
|
||||
ContextCompat.getColor(
|
||||
note.context, R.color.verdnatura_dark_sky_blue
|
||||
)
|
||||
)
|
||||
} else {
|
||||
note.setColorFilter(
|
||||
ContextCompat.getColor(
|
||||
note.context, R.color.verdnatura_white
|
||||
)
|
||||
)
|
||||
}
|
||||
note.setOnClickListener {
|
||||
onItemButtonTicketRowClickListener.onItemButtonTicketRowClickListener(
|
||||
item, "note"
|
||||
)
|
||||
}
|
||||
} else {
|
||||
note.alpha = 0.5f
|
||||
note.setColorFilter(Color.GRAY, PorterDuff.Mode.MULTIPLY)
|
||||
note.isClickable = false
|
||||
|
||||
}
|
||||
|
||||
addNote.setOnClickListener {
|
||||
onItemButtonTicketRowClickListener.onItemButtonTicketRowClickListener(
|
||||
item, "addNote"
|
||||
|
|
Loading…
Reference in New Issue