hani-momanii / SuperNova-Emoji

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

Emoji not showing first click #34

Open bala55555 opened 7 years ago

bala55555 commented 7 years ago

Sometime emoji keyboard not opening on first time click. Only it gets open on couple of click events.

3llomi commented 7 years ago

i have the same issue too! , it only works from the second click

3llomi commented 6 years ago

UPDATE: i got a Workaround fix for this problem

 emojiBtn.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
            @Override
            public void onGlobalLayout() {
                //free up resources!
                emojiBtn.getViewTreeObserver().removeOnGlobalLayoutListener(this);
                //Prefix for Bug! in Library
                emojIcon.ShowEmojIcon();
            }
        });