forked from upstream-mirrors/quik
Use LayoutContainer api for ViewHolders
This commit is contained in:
+1
-1
@@ -64,7 +64,7 @@ class ScheduledMessageAdapter @Inject constructor(
|
||||
|
||||
override fun onBindViewHolder(holder: QkViewHolder, position: Int) {
|
||||
val message = getItem(position)!!
|
||||
val view = holder.itemView
|
||||
val view = holder.containerView
|
||||
|
||||
// GroupAvatarView only accepts recipients, so map the phone numbers to recipients
|
||||
view.avatars.contacts = message.recipients.map { address -> Recipient(address = address) }
|
||||
|
||||
+1
-1
@@ -39,7 +39,7 @@ class ScheduledMessageAttachmentAdapter @Inject constructor() : QkAdapter<Uri>()
|
||||
|
||||
override fun onBindViewHolder(holder: QkViewHolder, position: Int) {
|
||||
val attachment = getItem(position)
|
||||
val view = holder.itemView
|
||||
val view = holder.containerView
|
||||
|
||||
GlideApp.with(view).load(attachment).into(view.thumbnail)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user