Fix an issue

This commit is contained in:
tom79 2019-06-04 09:38:34 +02:00
parent 4feb954612
commit 571c442fc9
1 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ public class MastalabAutoCompleteTextView extends android.support.v7.widget.AppC
}
@Override @CallSuper public void input(final Emoji emoji) {
if (emoji != null) {
if (emoji != null && !autocomplete) {
final int start = getSelectionStart();
final int end = getSelectionEnd();
@ -97,7 +97,7 @@ public class MastalabAutoCompleteTextView extends android.support.v7.widget.AppC
public final void setEmojiSize(@Px final int pixels, final boolean shouldInvalidate) {
emojiSize = pixels;
if (shouldInvalidate) {
if (shouldInvalidate && !autocomplete) {
setText(getText());
}
}