From 1b6c299251b82dc898cad3c6e21a92b833331781 Mon Sep 17 00:00:00 2001 From: Grishka Date: Wed, 30 Oct 2024 09:20:35 +0300 Subject: [PATCH] Fix custom emoji keyboard --- .../joinmastodon/android/ui/CustomEmojiPopupKeyboard.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/ui/CustomEmojiPopupKeyboard.java b/mastodon/src/main/java/org/joinmastodon/android/ui/CustomEmojiPopupKeyboard.java index 8bb38919..9c88f608 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/ui/CustomEmojiPopupKeyboard.java +++ b/mastodon/src/main/java/org/joinmastodon/android/ui/CustomEmojiPopupKeyboard.java @@ -216,7 +216,7 @@ public class CustomEmojiPopupKeyboard extends PopupKeyboard{ } } - private class EmojiViewHolder extends BindableViewHolder implements ImageLoaderViewHolder, UsableRecyclerView.Clickable{ + private class EmojiViewHolder extends BindableViewHolder implements ImageLoaderViewHolder{ public int positionWithinCategory; public EmojiViewHolder(){ super(new ImageView(activity)); @@ -226,6 +226,7 @@ public class CustomEmojiPopupKeyboard extends PopupKeyboard{ int pad=V.dp(12); img.setPadding(pad, pad, pad, pad); img.setBackgroundResource(R.drawable.bg_custom_emoji); + itemView.setOnClickListener(v->onClick()); } @Override @@ -247,8 +248,7 @@ public class CustomEmojiPopupKeyboard extends PopupKeyboard{ ((ImageView)itemView).setImageDrawable(null); } - @Override - public void onClick(){ + private void onClick(){ listener.onEmojiSelected(item); } }