This commit is contained in:
Thomas 2022-05-05 17:44:06 +02:00
parent d30175d372
commit 10d8b42552

View file

@ -912,7 +912,7 @@ public class ComposeAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder
Handler mainHandler = new Handler(Looper.getMainLooper());
Runnable myRunnable = () -> {
int currentCursorPosition = holder.binding.content.getSelectionStart();
EmojiSearchAdapter emojisSearchAdapter = new EmojiSearchAdapter(context, emojis[0]);
EmojiSearchAdapter emojisSearchAdapter = new EmojiSearchAdapter(context, emojisToDisplay);
holder.binding.content.setThreshold(1);
holder.binding.content.setAdapter(emojisSearchAdapter);
final String oldContent = holder.binding.content.getText().toString();