hani-momanii / SuperNova-Emoji

library to implement and render emojis For Android
Other
363 stars 114 forks source link

When emoji keyboad open editext onclick open text keyboard #12

Open Naguchennai opened 8 years ago

Naguchennai commented 8 years ago

working well. But if emoji keybord open onclick edittext need open text keybord .. like whatsapp. right now i need click emoji buttton again... i think u got me??

hani-momanii commented 8 years ago

Will do soon

3llomi commented 7 years ago

actually you can set a ClickListener to the EditText and inside it you can call emojIcon.closeEmojIcon();

AseevEIDev commented 6 years ago

There is a way to set pendingOpen variable to false with reflection and solve this problem. Just call this method at the end of onCreateView method:

private void disableAutoOpenEmoji(EmojIconActions emojActions) {
  try {
    Field field = emojActions.getClass().getDeclaredField("popup");
    field.setAccessible(true);
    EmojiconsPopup emojiconsPopup = (EmojiconsPopup) field.get(emojActions);
    field = emojiconsPopup.getClass().getDeclaredField("pendingOpen");
    field.setAccessible(true);
    field.set(emojiconsPopup, false);
  } catch (Exception exception) {...}
}