mirror of
https://github.com/Julow/Unexpected-Keyboard.git
synced 2025-06-25 20:22:38 +02:00
Fix emoji flag group missing
Off by one error when parsing the emoji groups.
This commit is contained in:
parent
3d7925340b
commit
58dabfaa07
@ -51,8 +51,14 @@ public class Emoji
|
||||
if ((line = reader.readLine()) != null)
|
||||
{
|
||||
String[] tokens = line.split(" ");
|
||||
for (int i = 0; i < tokens.length-1; i++)
|
||||
_groups.add(_all.subList(Integer.parseInt(tokens[i]), Integer.parseInt(tokens[i+1])));
|
||||
int last = 0;
|
||||
for (int i = 1; i < tokens.length; i++)
|
||||
{
|
||||
int next = Integer.parseInt(tokens[i]);
|
||||
_groups.add(_all.subList(last, next));
|
||||
last = next;
|
||||
}
|
||||
_groups.add(_all.subList(last, _all.size()));
|
||||
}
|
||||
}
|
||||
catch (IOException e) { Logs.exn("Emoji.init() failed", e); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user