From 3a904cc345fe09c616b0ba195def260da081234d Mon Sep 17 00:00:00 2001 From: Andy Scherzinger Date: Fri, 29 Nov 2024 16:09:06 +0100 Subject: [PATCH] style(lint): make use of ResourceCompat Signed-off-by: Andy Scherzinger --- .../talk/adapters/messages/TemporaryMessageViewHolder.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/nextcloud/talk/adapters/messages/TemporaryMessageViewHolder.kt b/app/src/main/java/com/nextcloud/talk/adapters/messages/TemporaryMessageViewHolder.kt index 42f4c693eb..a0ba8b2f4a 100644 --- a/app/src/main/java/com/nextcloud/talk/adapters/messages/TemporaryMessageViewHolder.kt +++ b/app/src/main/java/com/nextcloud/talk/adapters/messages/TemporaryMessageViewHolder.kt @@ -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(