Fix emoji toggle behavior when in emoji search mode.

When in emoji search, toggle would be set to "emoji" state or
act like in "emoji" state. Fix is to show "keyboard" state still
when in emoji search.
This commit is contained in:
Cody Henthorne
2022-12-15 13:32:22 -05:00
parent 4d47b9c594
commit 3ce5a7da67
4 changed files with 17 additions and 5 deletions

View File

@@ -1171,8 +1171,12 @@ public class ConversationParentFragment extends Fragment
@Override
public void onKeyboardShown() {
inputPanel.onKeyboardShown();
if (emojiDrawerStub.resolved() && emojiDrawerStub.get().isShowing() && !emojiDrawerStub.get().isEmojiSearchMode()) {
emojiDrawerStub.get().hide(true);
if (emojiDrawerStub.resolved() && emojiDrawerStub.get().isShowing()) {
if (emojiDrawerStub.get().isEmojiSearchMode()) {
inputPanel.setToIme();
} else {
emojiDrawerStub.get().hide(true);
}
}
if (attachmentKeyboardStub.resolved() && attachmentKeyboardStub.get().isShowing()) {
navigationBarBackground.setVisibility(View.GONE);