diff options
author | 2013-04-10 04:24:19 -0700 | |
---|---|---|
committer | 2013-04-10 04:24:19 -0700 | |
commit | cd51b80a0b31493ef9dce9b5283264399b305ba0 (patch) | |
tree | 416686696288f86a65ae9c016a9e29eaa27f4bd4 /java/src | |
parent | 9a6ff5dcef1a593260032b5e10eb801de297c0b2 (diff) | |
parent | fb3e805722975c39a47e29cfe6c27dd8a8f30701 (diff) | |
download | latinime-cd51b80a0b31493ef9dce9b5283264399b305ba0.tar.gz latinime-cd51b80a0b31493ef9dce9b5283264399b305ba0.tar.xz latinime-cd51b80a0b31493ef9dce9b5283264399b305ba0.zip |
am fb3e8057: Merge "Fix a bug where a space would not be inserted before a gesture"
* commit 'fb3e805722975c39a47e29cfe6c27dd8a8f30701':
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; } } |