refactor: move glide assignment into bind

This commit is contained in:
jubb 2021-08-03 13:42:15 +10:00
parent 9b48d5d203
commit e064a6d7c3
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}
}