From 8c164932a8396f30ec63b23f5ecf6234a6839545 Mon Sep 17 00:00:00 2001 From: Arne Date: Sun, 7 Apr 2024 11:02:54 +0200 Subject: [PATCH] Show file icon when no image or video in quotes --- .../eu/siacs/conversations/ui/adapter/MessageAdapter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java b/src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java index 3daf5f304e..2f354c0b72 100644 --- a/src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java +++ b/src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java @@ -823,13 +823,13 @@ public class MessageAdapter extends ArrayAdapter { for (String imageurl : uri) { if (activity.xmppConnectionService.getBooleanPreference("play_gif_inside", R.bool.play_gif_inside)) { Glide.with(activity) - .load(imageurl).placeholder(R.drawable.ic_image_grey600_48dp) + .load(imageurl).placeholder(R.drawable.ic_file_grey600_48dp) .thumbnail(0.2f).error(imageurl) .into(viewHolder.quotedImage); viewHolder.quotedImageBox.setVisibility(View.VISIBLE); } else { Glide.with(activity).asBitmap() - .load(imageurl).placeholder(R.drawable.ic_image_grey600_48dp) + .load(imageurl).placeholder(R.drawable.ic_file_grey600_48dp) .thumbnail(0.2f).error(imageurl) .into(viewHolder.quotedImage); viewHolder.quotedImageBox.setVisibility(View.VISIBLE);