Skip to content

Commit aed0067

Browse files
committed
todos
1 parent d39fed0 commit aed0067

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/src/main/java/org/thoughtcrime/securesms/components/emoji/EmojiTextView.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public EmojiTextView(Context context, @Nullable AttributeSet attrs, int defStyle
4444
/**
4545
* Checks if a Unicode codepoint is considered an emoji.
4646
*/
47+
//todo: We need a more solid way to check for this
4748
private boolean isEmoji(int codePoint) {
4849
return (codePoint >= 0x1F000 && codePoint <= 0x1FFFF) || // Most emojis live here
4950
(codePoint >= 0x2000 && codePoint <= 0x2BFF) || // Includes arrows, symbols
@@ -81,6 +82,7 @@ private boolean isAllEmojis(CharSequence text) {
8182
/**
8283
* Counts the number of emoji codepoints in the text (ignoring whitespace).
8384
*/
85+
//todo: some modern emojis are a group of two, like the phoenix emoji, and this will return 2 instead of one
8486
private int countEmojis(CharSequence text) {
8587
if (text == null || text.length() == 0) return 0;
8688
int len = text.length();

0 commit comments

Comments
 (0)