diff options
author | 2011-05-11 12:40:17 +0900 | |
---|---|---|
committer | 2011-05-11 12:40:17 +0900 | |
commit | 4f3b59711f6985d39e0cc908d2431ae6715d9b26 (patch) | |
tree | 325577b5ddacd37a6094626fa35a5e33b9dfd8d4 /java/src/com | |
parent | 9fbfd5877305ed19a20663630b498b6b3fdae942 (diff) | |
download | latinime-4f3b59711f6985d39e0cc908d2431ae6715d9b26.tar.gz latinime-4f3b59711f6985d39e0cc908d2431ae6715d9b26.tar.xz latinime-4f3b59711f6985d39e0cc908d2431ae6715d9b26.zip |
Fix a bug where suggestion strip pick would reset magic space
Bug: 4391347
Change-Id: I93c3c821d3ab78a300edc3d251ce7b1ee0dc3958
Diffstat (limited to 'java/src/com')
-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 375529f25..abe6bdd0d 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1579,11 +1579,12 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar // pressed space on purpose of displaying the suggestion strip punctuation. final char primaryCode = suggestion.charAt(0); final int toLeft = (ic == null) ? 0 : ic.getTextBeforeCursor(1, 0).charAt(0); + final boolean oldMagicSpace = mJustAddedMagicSpace; if (Keyboard.CODE_SPACE == toLeft) mJustAddedMagicSpace = true; onCodeInput(primaryCode, new int[] { primaryCode }, KeyboardActionListener.NOT_A_TOUCH_COORDINATE, KeyboardActionListener.NOT_A_TOUCH_COORDINATE); - mJustAddedMagicSpace = false; + mJustAddedMagicSpace = oldMagicSpace; if (ic != null) { ic.endBatchEdit(); } |