Skip displaying image place holders

pull/155/head
M66B 6 years ago
parent c42805263e
commit fbe5a11682

@ -1782,7 +1782,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
boolean show_images = properties.getValue("images", id); boolean show_images = properties.getValue("images", id);
if (show_images) { if (show_images) {
ImageSpan[] image = buffer.getSpans(off, off, ImageSpan.class); ImageSpan[] image = buffer.getSpans(off, off, ImageSpan.class);
if (image.length > 0) { if (image.length > 0 && image[0].getSource() != null) {
onOpenImage(image[0].getDrawable(), image[0].getSource()); onOpenImage(image[0].getDrawable(), image[0].getSource());
return true; return true;
} }

Loading…
Cancel
Save