mirror of
https://github.com/Julow/Unexpected-Keyboard.git
synced 2025-06-26 04:32:25 +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)
|
if ((line = reader.readLine()) != null)
|
||||||
{
|
{
|
||||||
String[] tokens = line.split(" ");
|
String[] tokens = line.split(" ");
|
||||||
for (int i = 0; i < tokens.length-1; i++)
|
int last = 0;
|
||||||
_groups.add(_all.subList(Integer.parseInt(tokens[i]), Integer.parseInt(tokens[i+1])));
|
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); }
|
catch (IOException e) { Logs.exn("Emoji.init() failed", e); }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user