refactor: move glide assignment into bind
This commit is contained in:
parent
9b48d5d203
commit
e064a6d7c3
|
@ -39,6 +39,7 @@ class ConversationView : LinearLayout {
|
|||
// region Updating
|
||||
fun bind(thread: ThreadRecord, isTyping: Boolean, glide: GlideRequests) {
|
||||
this.thread = thread
|
||||
profilePictureView.glide = glide
|
||||
val unreadCount = thread.unreadCount
|
||||
if (thread.recipient.isBlocked) {
|
||||
accentView.setBackgroundResource(R.color.destructive)
|
||||
|
@ -89,7 +90,6 @@ class ConversationView : LinearLayout {
|
|||
else -> statusIndicatorImageView.setImageResource(R.drawable.ic_circle_check)
|
||||
}
|
||||
post {
|
||||
profilePictureView.glide = glide
|
||||
profilePictureView.update(thread.recipient, thread.threadId)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue