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

This commit is contained in:
Thomas 2023-12-19 15:35:57 +01:00
parent 0fe27e5a76
commit 4ce92e67b1

View file

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