fix(custom-emoji-helper): don't do anything if the spans list is empty
This commit is contained in:
parent
1829dc1d9d
commit
87cb80867a
|
@ -48,6 +48,8 @@ public class CustomEmojiHelper{
|
|||
}
|
||||
|
||||
public void setImageDrawable(int image, Drawable drawable){
|
||||
if(spans.isEmpty())
|
||||
return;
|
||||
for(CustomEmojiSpan span:spans.get(image)){
|
||||
span.setDrawable(drawable);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue