Added support for SVG in messages

This commit is contained in:
M66B
2021-07-18 12:15:25 +02:00
parent 289d9fc0cd
commit 76ed2d766d
3 changed files with 40 additions and 24 deletions

View File

@@ -79,7 +79,8 @@ public class AdapterImage extends RecyclerView.Adapter<AdapterImage.ViewHolder>
private void bindTo(EntityAttachment attachment) {
if (attachment.available) {
Bitmap bm = ImageHelper.decodeImage(attachment.getFile(context),
Bitmap bm = ImageHelper.decodeImage(
attachment.getFile(context), attachment.getMimeType(),
context.getResources().getDisplayMetrics().widthPixels);
if (bm == null)
ivImage.setImageResource(R.drawable.twotone_broken_image_24);