diff options
| author | Patrick | 2026-05-07 20:40:44 +0200 |
|---|---|---|
| committer | Patrick | 2026-05-07 20:40:44 +0200 |
| commit | e1d6e822f155173d8f44dfbdb91626112cd2145b (patch) | |
| tree | 0560a4d5ad26bddeb64f506bd69a21db1e4dbe18 /gen_emoji.py | |
| parent | b866f59e400973c2f7ba0e97517fdddeb3efbb33 (diff) | |
| download | unexpected-keyboard-skintones.tar.gz unexpected-keyboard-skintones.zip | |
Slight refactor of handling the base skin tone variationskintones
Instead of adding only the skin tone variations to emojis_skintone_modifiable.txt and explicitly adding the base variation in Emoji.init(), we can just add the base variant in gen_emojis.txt and can remove special handling in Emoji.java, including the copy constructor that we needed for this specific case
Diffstat (limited to 'gen_emoji.py')
| -rw-r--r-- | gen_emoji.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gen_emoji.py b/gen_emoji.py index ccbc8d8..63ce0be 100644 --- a/gen_emoji.py +++ b/gen_emoji.py @@ -44,7 +44,7 @@ for line in getEmojiTestContents().splitlines(): # if the list is empty, or the last entry doesnt begin with the index we are currently at if len(emoji_skintone_modifiable_list) == 0 or emoji_skintone_modifiable_list[-1][0] != len(emoji_list)-1: # create a new list with the index - emoji_skintone_modifiable_list.append([len(emoji_list)-1]) + emoji_skintone_modifiable_list.append([len(emoji_list)-1, emoji_list[-1]]) # add the current skintone to the newest list emoji_skintone_modifiable_list[-1].append(emoji) else: |
