mirror of
https://codeberg.org/monocles/monocles_chat.git
synced 2025-01-15 22:22:22 +01:00
Show file icon when no image or video in quotes
This commit is contained in:
parent
231b29987d
commit
8c164932a8
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue