mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-19 16:30:19 +00:00
fix crash
This commit is contained in:
parent
579fdb81d5
commit
a0c53d8f92
1 changed files with 1 additions and 1 deletions
|
@ -731,7 +731,7 @@ public final class RichInputConnection implements PrivateCommandPerformer {
|
|||
// before ends with separator or similar -> check whether text before cursor ends with the same codepoint
|
||||
int lastBeforeLength = Character.charCount(lastBeforeCodePoint);
|
||||
CharSequence codePointBeforeCursor = getTextBeforeCursor(lastBeforeLength, 0);
|
||||
if (Character.codePointAt(codePointBeforeCursor, 0) != lastBeforeCodePoint) {
|
||||
if (codePointBeforeCursor.length() != 0 && Character.codePointAt(codePointBeforeCursor, 0) != lastBeforeCodePoint) {
|
||||
// they are different, as is expected from the issue
|
||||
// now check whether they are the same if the last codepoint of before is removed
|
||||
final CharSequence beforeWithoutLast = before.subSequence(0, before.length() - lastBeforeLength);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue