mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-07-09 07:24:06 +01:00
Ignore whitespace when determining if we show jumbomoji.
This commit is contained in:
@@ -42,7 +42,9 @@ public class EmojiParser {
|
||||
public @NonNull CandidateList findCandidates(@Nullable CharSequence text) {
|
||||
List<Candidate> results = new LinkedList<>();
|
||||
|
||||
if (text == null) return new CandidateList(results, false);
|
||||
if (text == null) {
|
||||
return new CandidateList(results, false);
|
||||
}
|
||||
|
||||
boolean allEmojis = text.length() > 0;
|
||||
|
||||
@@ -61,11 +63,13 @@ public class EmojiParser {
|
||||
results.add(new Candidate(i, emojiEnd, drawInfo));
|
||||
|
||||
i = emojiEnd - 1;
|
||||
} else {
|
||||
} else if (text.charAt(i) != ' '){
|
||||
allEmojis = false;
|
||||
}
|
||||
}
|
||||
|
||||
allEmojis &= !results.isEmpty();
|
||||
|
||||
return new CandidateList(results, allEmojis);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user