From e064a6d7c33a09ca86cefda9d027dc83de4dfa9c Mon Sep 17 00:00:00 2001 From: jubb Date: Tue, 3 Aug 2021 13:42:15 +1000 Subject: [PATCH] refactor: move glide assignment into bind --- .../java/org/thoughtcrime/securesms/home/ConversationView.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/home/ConversationView.kt b/app/src/main/java/org/thoughtcrime/securesms/home/ConversationView.kt index b72b4fb79e..28531ff4cc 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/home/ConversationView.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/home/ConversationView.kt @@ -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) } }