From 9ef7570d4854d8e99d3ad0cb96a86171894a9e94 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Fri, 29 Jun 2018 13:40:55 +0200 Subject: [PATCH] use EmojiWrapperEditText for most relevant text inputs --- .../{AbstractEditMessage.java => EmojiWrapperEditText.java} | 6 +++--- .../java/eu/siacs/conversations/ui/widget/EditMessage.java | 2 +- src/main/res/layout/activity_muc_details.xml | 4 ++-- src/main/res/layout/create_conference_dialog.xml | 2 +- src/main/res/layout/dialog_quickedit.xml | 4 ++-- .../{AbstractEditMessage.java => EmojiWrapperEditText.java} | 6 +++--- 6 files changed, 12 insertions(+), 12 deletions(-) rename src/compat/java/eu/siacs/conversations/ui/widget/{AbstractEditMessage.java => EmojiWrapperEditText.java} (55%) rename src/system/java/eu/siacs/conversations/ui/widget/{AbstractEditMessage.java => EmojiWrapperEditText.java} (54%) diff --git a/src/compat/java/eu/siacs/conversations/ui/widget/AbstractEditMessage.java b/src/compat/java/eu/siacs/conversations/ui/widget/EmojiWrapperEditText.java similarity index 55% rename from src/compat/java/eu/siacs/conversations/ui/widget/AbstractEditMessage.java rename to src/compat/java/eu/siacs/conversations/ui/widget/EmojiWrapperEditText.java index 3620accbd..af6587ef5 100644 --- a/src/compat/java/eu/siacs/conversations/ui/widget/AbstractEditMessage.java +++ b/src/compat/java/eu/siacs/conversations/ui/widget/EmojiWrapperEditText.java @@ -4,13 +4,13 @@ import android.content.Context; import android.support.text.emoji.widget.EmojiAppCompatEditText; import android.util.AttributeSet; -public abstract class AbstractEditMessage extends EmojiAppCompatEditText { +public class EmojiWrapperEditText extends EmojiAppCompatEditText { - public AbstractEditMessage(Context context) { + public EmojiWrapperEditText(Context context) { super(context); } - public AbstractEditMessage(Context context, AttributeSet attrs) { + public EmojiWrapperEditText(Context context, AttributeSet attrs) { super(context, attrs); } diff --git a/src/main/java/eu/siacs/conversations/ui/widget/EditMessage.java b/src/main/java/eu/siacs/conversations/ui/widget/EditMessage.java index 61a0272b7..33220bde3 100644 --- a/src/main/java/eu/siacs/conversations/ui/widget/EditMessage.java +++ b/src/main/java/eu/siacs/conversations/ui/widget/EditMessage.java @@ -22,7 +22,7 @@ import android.view.inputmethod.InputConnection; import eu.siacs.conversations.Config; import eu.siacs.conversations.R; -public class EditMessage extends AbstractEditMessage { +public class EditMessage extends EmojiWrapperEditText { private static final InputFilter SPAN_FILTER = (source, start, end, dest, dstart, dend) -> source instanceof Spanned ? source.toString() : source; protected Handler mTypingHandler = new Handler(); diff --git a/src/main/res/layout/activity_muc_details.xml b/src/main/res/layout/activity_muc_details.xml index 2d5c09a48..fe335c046 100644 --- a/src/main/res/layout/activity_muc_details.xml +++ b/src/main/res/layout/activity_muc_details.xml @@ -98,7 +98,7 @@ app:errorTextAppearance="@style/TextAppearance.Conversations.Design.Error" app:hintTextAppearance="@style/TextAppearance.Conversations.Design.Hint"> - - - - - + diff --git a/src/system/java/eu/siacs/conversations/ui/widget/AbstractEditMessage.java b/src/system/java/eu/siacs/conversations/ui/widget/EmojiWrapperEditText.java similarity index 54% rename from src/system/java/eu/siacs/conversations/ui/widget/AbstractEditMessage.java rename to src/system/java/eu/siacs/conversations/ui/widget/EmojiWrapperEditText.java index 5f35e00b4..be21c56f6 100644 --- a/src/system/java/eu/siacs/conversations/ui/widget/AbstractEditMessage.java +++ b/src/system/java/eu/siacs/conversations/ui/widget/EmojiWrapperEditText.java @@ -4,13 +4,13 @@ import android.content.Context; import android.support.v7.widget.AppCompatEditText; import android.util.AttributeSet; -public abstract class AbstractEditMessage extends AppCompatEditText { +public class EmojiWrapperEditText extends AppCompatEditText { - public AbstractEditMessage(Context context) { + public EmojiWrapperEditText(Context context) { super(context); } - public AbstractEditMessage(Context context, AttributeSet attrs) { + public EmojiWrapperEditText(Context context, AttributeSet attrs) { super(context, attrs); } } \ No newline at end of file