small fix

This commit is contained in:
Thomas 2020-07-17 17:07:15 +02:00
parent e5570b2d10
commit f081ac31f6
1 changed files with 3 additions and 1 deletions

View File

@ -89,7 +89,9 @@ public class CustomEmojiAdapter extends BaseAdapter {
public void onResourceReady(@NonNull Drawable resource, @Nullable Transition<? super Drawable> transition) {
emoji.setDrawable(resource);
if (imageView != null && emoji.getDrawable() != null) {
imageView.setImageDrawable(emoji.getDrawable());
try {
imageView.setImageDrawable(emoji.getDrawable());
}catch (Exception ignored){}
}
}