mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-12-19 15:14:28 +03:00
style(lint): make use of ResourceCompat
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
69cbf3ee7a
commit
6de05d8fa4
1 changed files with 6 additions and 2 deletions
|
@ -131,10 +131,14 @@ 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(
|
||||
|
|
Loading…
Reference in a new issue