Fix crash when leaving conversation.

This commit is contained in:
Cody Henthorne
2023-07-20 13:52:12 -04:00
parent ec25831a37
commit b887129cd7
2 changed files with 20 additions and 2 deletions

View File

@@ -90,6 +90,12 @@ public class EmojiEditText extends AppCompatEditText {
onFocusChangeListeners.add(listener);
}
public void removeOnFocusChangeListener(@Nullable OnFocusChangeListener listener) {
if (listener != null) {
onFocusChangeListeners.remove(listener);
}
}
private InputFilter[] appendEmojiFilter(@Nullable InputFilter[] originalFilters, boolean jumboEmoji) {
InputFilter[] result;