Fix #1009 -Hide emoji picker when instance has no custom emojis
This commit is contained in:
parent
0fe27e5a76
commit
4ce92e67b1
|
@ -1650,7 +1650,11 @@ public class ComposeAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder
|
||||||
//Last compose drawer
|
//Last compose drawer
|
||||||
buttonVisibility(holder);
|
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 -> {
|
holder.binding.buttonEmoji.setOnClickListener(v -> {
|
||||||
try {
|
try {
|
||||||
displayEmojiPicker(holder, account.instance);
|
displayEmojiPicker(holder, account.instance);
|
||||||
|
|
Loading…
Reference in New Issue