From caf97195cea323ca8c17af77117e002ddc44d1c7 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 | 8 ++++++-- 1 file changed, 6 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..d684ac6c57 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,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(