diff options
author | 2013-04-10 11:19:31 +0000 | |
---|---|---|
committer | 2013-04-10 11:19:31 +0000 | |
commit | fb3e805722975c39a47e29cfe6c27dd8a8f30701 (patch) | |
tree | 416686696288f86a65ae9c016a9e29eaa27f4bd4 /java/src | |
parent | c7d4158979dc729767e8ab541d19feda672ea8da (diff) | |
parent | 30b8004b562bd43c8e42a838012fbab104bb0eab (diff) | |
download | latinime-fb3e805722975c39a47e29cfe6c27dd8a8f30701.tar.gz latinime-fb3e805722975c39a47e29cfe6c27dd8a8f30701.tar.xz latinime-fb3e805722975c39a47e29cfe6c27dd8a8f30701.zip |
Merge "Fix a bug where a space would not be inserted before a gesture"
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index ec1816eaa..0f1f14957 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -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; } } |