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

This commit is contained in:
Jean Chalard 2013-04-10 11:19:31 +00:00 committed by Android (Google) Code Review
commit fb3e805722

View file

@ -1540,7 +1540,8 @@ public final class LatinIME extends InputMethodService implements KeyboardAction
} }
} else { } else {
final int codePointBeforeCursor = mConnection.getCodePointBeforeCursor(); final int codePointBeforeCursor = mConnection.getCodePointBeforeCursor();
if (mSettings.getCurrent().isUsuallyFollowedBySpace(codePointBeforeCursor)) { if (Character.isLetter(codePointBeforeCursor)
|| mSettings.getCurrent().isUsuallyFollowedBySpace(codePointBeforeCursor)) {
mSpaceState = SPACE_STATE_PHANTOM; mSpaceState = SPACE_STATE_PHANTOM;
} }
} }