Merge "Fix a bug where a space would not be inserted before a gesture"
This commit is contained in:
commit
fb3e805722
1 changed files with 2 additions and 1 deletions
|
@ -1540,7 +1540,8 @@ public final class LatinIME extends InputMethodService implements KeyboardAction
|
|||
}
|
||||
} else {
|
||||
final int codePointBeforeCursor = mConnection.getCodePointBeforeCursor();
|
||||
if (mSettings.getCurrent().isUsuallyFollowedBySpace(codePointBeforeCursor)) {
|
||||
if (Character.isLetter(codePointBeforeCursor)
|
||||
|| mSettings.getCurrent().isUsuallyFollowedBySpace(codePointBeforeCursor)) {
|
||||
mSpaceState = SPACE_STATE_PHANTOM;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue