Show file icon when no image or video in quotes

This commit is contained in:
Arne 2024-04-07 11:02:54 +02:00
parent 231b29987d
commit 8c164932a8

View file

@ -823,13 +823,13 @@ public class MessageAdapter extends ArrayAdapter<Message> {
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);