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