Skip to content

Commit

Permalink
fix(custom-emoji-helper): don't do anything if the spans list is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasGGamerM committed Jul 17, 2024
1 parent 1829dc1 commit 87cb808
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ public ImageLoaderRequest getImageRequest(int image){
}

public void setImageDrawable(int image, Drawable drawable){
if(spans.isEmpty())
return;
for(CustomEmojiSpan span:spans.get(image)){
span.setDrawable(drawable);
}
Expand Down

0 comments on commit 87cb808

Please sign in to comment.