diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-03-09 22:00:03 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-03-09 22:00:03 +0100 |
commit | 3ad30ee8112d79dfd85eb81083205c1c13b961b2 (patch) | |
tree | 12cd8c9d4235b83f3d88c4be721362343570326f /src/main/java/de/pixart/messenger/ui | |
parent | 43fbf3c5b517c749c821a8a1e501a55d40519984 (diff) |
fixed hint color for edit message
Diffstat (limited to 'src/main/java/de/pixart/messenger/ui')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/widget/EditMessage.java | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/widget/EditMessage.java b/src/main/java/de/pixart/messenger/ui/widget/EditMessage.java index 3b9b50f1c..bb1f0536c 100644 --- a/src/main/java/de/pixart/messenger/ui/widget/EditMessage.java +++ b/src/main/java/de/pixart/messenger/ui/widget/EditMessage.java @@ -5,7 +5,7 @@ import android.os.Build; import android.os.Bundle; import android.os.Handler; import android.support.annotation.Nullable; -import android.support.text.emoji.widget.EmojiEditText; +import android.support.text.emoji.widget.EmojiAppCompatEditText; import android.support.v13.view.inputmethod.EditorInfoCompat; import android.support.v13.view.inputmethod.InputConnectionCompat; import android.support.v13.view.inputmethod.InputContentInfoCompat; @@ -19,15 +19,9 @@ import android.view.inputmethod.InputConnection; import de.pixart.messenger.Config; -public class EditMessage extends EmojiEditText { +public class EditMessage extends EmojiAppCompatEditText { - private static final InputFilter SPAN_FILTER = new InputFilter() { - - @Override - public CharSequence filter(CharSequence source, int start, int end, Spanned dest, int dstart, int dend) { - return source instanceof Spanned ? source.toString() : source; - } - }; + private static final InputFilter SPAN_FILTER = (source, start, end, dest, dstart, dend) -> source instanceof Spanned ? source.toString() : source; protected Handler mTypingHandler = new Handler(); protected KeyboardListener keyboardListener; |