use of org.thoughtcrime.securesms.components.emoji.EmojiFilter in project Signal-Android by signalapp.
the class SearchView method appendEmojiFilter.
private InputFilter[] appendEmojiFilter(@NonNull TextView view) {
InputFilter[] originalFilters = view.getFilters();
InputFilter[] result;
if (originalFilters != null) {
result = new InputFilter[originalFilters.length + 1];
System.arraycopy(originalFilters, 0, result, 1, originalFilters.length);
} else {
result = new InputFilter[1];
}
result[0] = new EmojiFilter(view, false);
return result;
}
use of org.thoughtcrime.securesms.components.emoji.EmojiFilter in project Signal-Android by WhisperSystems.
the class SearchView method appendEmojiFilter.
private InputFilter[] appendEmojiFilter(@NonNull TextView view) {
InputFilter[] originalFilters = view.getFilters();
InputFilter[] result;
if (originalFilters != null) {
result = new InputFilter[originalFilters.length + 1];
System.arraycopy(originalFilters, 0, result, 1, originalFilters.length);
} else {
result = new InputFilter[1];
}
result[0] = new EmojiFilter(view, false);
return result;
}
Aggregations