mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-16 04:39:54 +01:00
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:
@@ -85,7 +85,6 @@ public class EmojiTextInputView extends LinearLayout implements
|
|||||||
editText = findViewById(R.id.input_text);
|
editText = findViewById(R.id.input_text);
|
||||||
editText.setPadding(0, 0, paddingEnd, paddingBottom);
|
editText.setPadding(0, 0, paddingEnd, paddingBottom);
|
||||||
if (maxLines > 0) editText.setMaxLines(maxLines);
|
if (maxLines > 0) editText.setMaxLines(maxLines);
|
||||||
editText.setOnClickListener(v -> showSoftKeyboard());
|
|
||||||
editText.addTextChangedListener(this);
|
editText.addTextChangedListener(this);
|
||||||
editText.setOnEditorActionListener((v, actionId, event) -> {
|
editText.setOnEditorActionListener((v, actionId, event) -> {
|
||||||
if (actionId == IME_ACTION_SEND) {
|
if (actionId == IME_ACTION_SEND) {
|
||||||
@@ -130,6 +129,9 @@ public class EmojiTextInputView extends LinearLayout implements
|
|||||||
R.attr.colorControlNormal))
|
R.attr.colorControlNormal))
|
||||||
.build(editText);
|
.build(editText);
|
||||||
emojiToggle.setOnClickListener(v -> emojiPopup.toggle());
|
emojiToggle.setOnClickListener(v -> emojiPopup.toggle());
|
||||||
|
editText.setOnClickListener(v -> {
|
||||||
|
if (emojiPopup.isShowing()) emojiPopup.dismiss();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user