forked from mirror/monocles_chat_clean
Need the span so we have the source even with no icon
(cherry picked from commit 9b4f2dcd22c320719a48865483079f8bfd68f6b7)
This commit is contained in:
parent
9434f31915
commit
238ce10c91
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue