Description
Whenever i open the emoticons with button and change to keybord and hide it (call method dismiss();) i lost focus to rootView so then i can open emoticonsSelect but i no have a the rootView
This open:
private void showEmoticon() {
imageEmoticonButton.setOnClickListener(new View.OnClickListener() {
@OverRide
public void onClick(View v) {
emojiPopup.toggle();
}
});
}
i setup on OnCreateView (fragment)
private void setUpEmojiPopup() {
emojiPopup = EmojiPopup.Builder.fromRootView(sendPanel).setOnEmojiBackspaceClickListener(new OnEmojiBackspaceClickListener() {
@OverRide
public void onEmojiBackspaceClicked(final View v) {
}
}).setOnEmojiClickedListener(new OnEmojiClickedListener() {
@OverRide
public void onEmojiClicked(final Emoji emoji) {
}
}).setOnEmojiPopupShownListener(new OnEmojiPopupShownListener() {
@OverRide
public void onEmojiPopupShown() {
// imageEmoticonButton.setEnabled(false);
}
}).setOnSoftKeyboardOpenListener(new OnSoftKeyboardOpenListener() {
@OverRide
public void onKeyboardOpen(final int keyBoardHeight) {
// emojiPopup.dismiss();
}
}).setOnEmojiPopupDismissListener(new OnEmojiPopupDismissListener() {
@OverRide
public void onEmojiPopupDismiss() {
}
}).setOnSoftKeyboardCloseListener(new OnSoftKeyboardCloseListener() {
@OverRide
public void onKeyboardClose() {
emojiPopup.dismiss();
}
}).build(messageBox);
}
Activity
Andrzej1991 commentedon Sep 6, 2016
I see other issue like this on closed issues. I try to help you resolve it. also pls look on Dismiss method. this method remove global root.
vanniktech commentedon Sep 7, 2016
Does the sample work for you?
Andrzej1991 commentedon Sep 8, 2016
nope. I use now version 2.0 and its work 3.0 doesnt work
vanniktech commentedon Sep 8, 2016
Alright that's good to know does 0.2.0 work for you on all devices?
Andrzej1991 commentedon Sep 8, 2016
Yea, i try on Huawei P9, Samsung Galaxy S5, S4, and on Sony xperia Z1, also on nexus emulator
vanniktech commentedon Sep 8, 2016
Alright I'll try to see what changed between the versions in the next few days if I find some time for it.
vanniktech commentedon Nov 19, 2016
I'll close this as this should be fixed with
0.4.0-SNAPSHOT
. If it isn't please create / reopen the issue. I'll cut a release soon.