File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
src/main/java/com/nextcloud/talk/utils Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ dependencies {
205205 implementation ' androidx.appcompat:appcompat:1.7.1'
206206 implementation ' com.google.android.material:material:1.13.0'
207207 implementation ' androidx.constraintlayout:constraintlayout:2.2.1'
208- implementation " com.vanniktech:emoji-google:0.21 .0"
208+ implementation " com.vanniktech:emoji-google:0.23 .0"
209209 implementation " androidx.emoji2:emoji2:${ emojiVersion} "
210210 implementation " androidx.emoji2:emoji2-bundled:${ emojiVersion} "
211211 implementation " androidx.emoji2:emoji2-views:${ emojiVersion} "
Original file line number Diff line number Diff line change 1717public final class TextMatchers {
1818
1919 public static boolean isMessageWithSingleEmoticonOnly (@ Nullable final String text ) {
20- final EmojiInformation emojiInformation = Emojis .emojiInformation (text );
21- return (emojiInformation .isOnlyEmojis && emojiInformation .emojis .size () == 1 );
20+ if (text != null ) {
21+ final EmojiInformation emojiInformation = Emojis .emojiInformation (text );
22+ return (emojiInformation .isOnlyEmojis && emojiInformation .getEmojiCount () == 1 );
23+ } else {
24+ return false ;
25+ }
2226 }
2327}
You can’t perform that action at this time.
0 commit comments