Fix #1009 -Hide emoji picker when instance has no custom emojis

custom_intent
Thomas 11 months ago
parent 0fe27e5a76
commit 4ce92e67b1

@ -1650,7 +1650,11 @@ public class ComposeAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder
//Last compose drawer
buttonVisibility(holder);
if (emojis != null && emojis.size() > 0) {
holder.binding.buttonEmoji.setVisibility(View.VISIBLE);
} else {
holder.binding.buttonEmoji.setVisibility(View.GONE);
}
holder.binding.buttonEmoji.setOnClickListener(v -> {
try {
displayEmojiPicker(holder, account.instance);

Loading…
Cancel
Save