Fix a bug where a space would not be inserted before a gesture

Bug: 8583675
Change-Id: I14924fef5663f48481994c02c56be45f9f85be65
main
Jean Chalard 2013-04-10 19:44:36 +09:00
parent 4f43076370
commit 30b8004b56
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}
}