Fix custom emoji keyboard
This commit is contained in:
parent
01ae5b915d
commit
1b6c299251
|
@ -216,7 +216,7 @@ public class CustomEmojiPopupKeyboard extends PopupKeyboard{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private class EmojiViewHolder extends BindableViewHolder<Emoji> implements ImageLoaderViewHolder, UsableRecyclerView.Clickable{
|
private class EmojiViewHolder extends BindableViewHolder<Emoji> implements ImageLoaderViewHolder{
|
||||||
public int positionWithinCategory;
|
public int positionWithinCategory;
|
||||||
public EmojiViewHolder(){
|
public EmojiViewHolder(){
|
||||||
super(new ImageView(activity));
|
super(new ImageView(activity));
|
||||||
|
@ -226,6 +226,7 @@ public class CustomEmojiPopupKeyboard extends PopupKeyboard{
|
||||||
int pad=V.dp(12);
|
int pad=V.dp(12);
|
||||||
img.setPadding(pad, pad, pad, pad);
|
img.setPadding(pad, pad, pad, pad);
|
||||||
img.setBackgroundResource(R.drawable.bg_custom_emoji);
|
img.setBackgroundResource(R.drawable.bg_custom_emoji);
|
||||||
|
itemView.setOnClickListener(v->onClick());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -247,8 +248,7 @@ public class CustomEmojiPopupKeyboard extends PopupKeyboard{
|
||||||
((ImageView)itemView).setImageDrawable(null);
|
((ImageView)itemView).setImageDrawable(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
private void onClick(){
|
||||||
public void onClick(){
|
|
||||||
listener.onEmojiSelected(item);
|
listener.onEmojiSelected(item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue