[android] show keyboard when clicking text input field

This commit is contained in:
Torsten Grote
2019-10-22 12:42:57 -03:00
parent 01df141c08
commit 529eaceec7

View File

@@ -85,7 +85,6 @@ public class EmojiTextInputView extends LinearLayout implements
editText = findViewById(R.id.input_text);
editText.setPadding(0, 0, paddingEnd, paddingBottom);
if (maxLines > 0) editText.setMaxLines(maxLines);
editText.setOnClickListener(v -> showSoftKeyboard());
editText.addTextChangedListener(this);
editText.setOnEditorActionListener((v, actionId, event) -> {
if (actionId == IME_ACTION_SEND) {
@@ -130,6 +129,9 @@ public class EmojiTextInputView extends LinearLayout implements
R.attr.colorControlNormal))
.build(editText);
emojiToggle.setOnClickListener(v -> emojiPopup.toggle());
editText.setOnClickListener(v -> {
if (emojiPopup.isShowing()) emojiPopup.dismiss();
});
}
@Override