Merge branch '1405-emoji-keyboard' into 'master'

Always show keyboard when clicking text input field

Closes #1405

See merge request briar/briar!1181
This commit is contained in:
akwizgran
2019-10-28 12:16:15 +00:00

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