mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-04-23 15:49:09 +00:00
fix crash
This commit is contained in:
parent
ccece45596
commit
cb09538b32
1 changed files with 1 additions and 1 deletions
|
@ -731,7 +731,7 @@ public final class RichInputConnection implements PrivateCommandPerformer {
|
||||||
// what could be actually going on? we probably need to fetch the text because we want updated styles if any
|
// what could be actually going on? we probably need to fetch the text because we want updated styles if any
|
||||||
|
|
||||||
// we need text before, and text after is always empty or a separator or similar
|
// we need text before, and text after is always empty or a separator or similar
|
||||||
if (before.length() > 0 && (after.length() == 0 || !isPartOfCompositionForScript(Character.codePointBefore(after, 0), spacingAndPunctuations, scriptId))) {
|
if (before.length() > 0 && (after.length() == 0 || !isPartOfCompositionForScript(Character.codePointAt(after, 0), spacingAndPunctuations, scriptId))) {
|
||||||
final int lastBeforeCodePoint = Character.codePointBefore(before, before.length());
|
final int lastBeforeCodePoint = Character.codePointBefore(before, before.length());
|
||||||
// check whether before ends with the same codepoint as getTextBeforeCursor
|
// check whether before ends with the same codepoint as getTextBeforeCursor
|
||||||
int lastBeforeLength = Character.charCount(lastBeforeCodePoint);
|
int lastBeforeLength = Character.charCount(lastBeforeCodePoint);
|
||||||
|
|
Loading…
Add table
Reference in a new issue