diff options
author | 2012-10-22 21:44:20 -0700 | |
---|---|---|
committer | 2012-10-22 21:44:20 -0700 | |
commit | 6fe6f38d8af09b24e40a6e01eae919820cd04c16 (patch) | |
tree | 412a863e55fe551fa22aeee8ac6696f86aa05b88 /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | bb0bc3260eccf6952e71655e4d933e7ca84e9a53 (diff) | |
parent | d39e64350c99b0dd3076214ebb1ec9ed1eb6e386 (diff) | |
download | latinime-6fe6f38d8af09b24e40a6e01eae919820cd04c16.tar.gz latinime-6fe6f38d8af09b24e40a6e01eae919820cd04c16.tar.xz latinime-6fe6f38d8af09b24e40a6e01eae919820cd04c16.zip |
am d39e6435: am f960eb18: Don\'t put spaces after characters that don\'t take one
* commit 'd39e64350c99b0dd3076214ebb1ec9ed1eb6e386':
Don't put spaces after characters that don't take one
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index c1b1751f1..1ade3c422 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1431,8 +1431,12 @@ public final class LatinIME extends InputMethodService implements KeyboardAction mSpaceState = SPACE_STATE_PHANTOM; } else { final int codePointBeforeCursor = mConnection.getCodePointBeforeCursor(); + // TODO: reverse this logic. We should have the means to determine whether a character + // should usually be followed by a space, and it should be more readable. if (Constants.NOT_A_CODE != codePointBeforeCursor - && !Character.isWhitespace(codePointBeforeCursor)) { + && !Character.isWhitespace(codePointBeforeCursor) + && !mCurrentSettings.isPhantomSpacePromotingSymbol(codePointBeforeCursor) + && !mCurrentSettings.isWeakSpaceStripper(codePointBeforeCursor)) { mSpaceState = SPACE_STATE_PHANTOM; } } |