Skip to content

Commit

Permalink
style(lint): make use of ResourceCompat
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
  • Loading branch information
AndyScherzinger committed Nov 29, 2024
1 parent 47050d3 commit 3a904cc
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,11 @@ class TemporaryMessageViewHolder(outgoingView: View, payload: Any) :
).first()
}

parentChatMessage!!.activeUser = message.activeUser
parentChatMessage.activeUser = message.activeUser
parentChatMessage.imageUrl?.let {
binding.messageQuote.quotedMessageImage.visibility = View.VISIBLE
val placeholder = context.resources.getDrawable(R.drawable.ic_mimetype_image)
val placeholder = ResourcesCompat.getDrawable(context.resources, R.drawable
.ic_mimetype_image, null)
binding.messageQuote.quotedMessageImage.setImageDrawable(placeholder)
binding.messageQuote.quotedMessageImage.load(it) {
addHeader(
Expand Down

0 comments on commit 3a904cc

Please sign in to comment.