diff --git a/src/monocleschat/java/de/monocles/chat/EmojiSearch.java b/src/monocleschat/java/de/monocles/chat/EmojiSearch.java index 9314a1c41..87ca5cd13 100644 --- a/src/monocleschat/java/de/monocles/chat/EmojiSearch.java +++ b/src/monocleschat/java/de/monocles/chat/EmojiSearch.java @@ -213,7 +213,7 @@ public class EmojiSearch { public SpannableStringBuilder toInsert() { SpannableStringBuilder builder = new SpannableStringBuilder(toString()); - if (icon != null) builder.setSpan(new InlineImageSpan(icon, source), 0, builder.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); + builder.setSpan(new InlineImageSpan(icon == null ? new android.graphics.drawable.ColorDrawable(0) : icon, source), 0, builder.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); return builder; }