mirror of https://github.com/M66B/FairEmail.git
Skip displaying image place holders
This commit is contained in:
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…
Reference in New Issue