fix(custom-emoji-helper): don't do anything if the spans list is empty

This commit is contained in:
LucasGGamerM 2024-07-17 12:09:32 -03:00
parent 1829dc1d9d
commit 87cb80867a
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}