mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2024-12-22 08:40:03 +02:00
Fix #1009 -Hide emoji picker when instance has no custom emojis
This commit is contained in:
parent
0fe27e5a76
commit
4ce92e67b1
1 changed files with 5 additions and 1 deletions
|
@ -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…
Reference in a new issue