aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-11-15 19:12:11 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2012-11-15 19:12:11 -0800
commit3dd4548ec6105ca774e84ab3223bdbcea1e4902e (patch)
tree94f408d8022a176174aafe25369eef89267c89e8 /java/src/com/android/inputmethod/latin/LatinIME.java
parent5dee6e69f1de114df1f258fdc62559237989dc75 (diff)
parent191d49ae8a0f4bb10724b83d9424d80f08ac7181 (diff)
downloadlatinime-3dd4548ec6105ca774e84ab3223bdbcea1e4902e.tar.gz
latinime-3dd4548ec6105ca774e84ab3223bdbcea1e4902e.tar.xz
latinime-3dd4548ec6105ca774e84ab3223bdbcea1e4902e.zip
am 191d49ae: Merge "Only add spaces automatically when appropriate." into jb-mr1.1-dev
* commit '191d49ae8a0f4bb10724b83d9424d80f08ac7181': Only add spaces automatically when appropriate.
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index ddfc27310..f416396e8 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -2257,7 +2257,9 @@ public final class LatinIME extends InputMethodService implements KeyboardAction
// This essentially inserts a space, and that's it.
public void promotePhantomSpace() {
- sendKeyCodePoint(Keyboard.CODE_SPACE);
+ if (mCurrentSettings.shouldInsertSpacesAutomatically()) {
+ sendKeyCodePoint(Keyboard.CODE_SPACE);
+ }
}
// Used by the RingCharBuffer