diff options
author | 2012-11-13 15:10:07 +0900 | |
---|---|---|
committer | 2012-11-19 19:47:40 +0900 | |
commit | ec60d60078b4837b657dc207bdbde1748749199e (patch) | |
tree | ac71b20923c66717c040e6fd74144b3b1a39d85f /java/src/com/android/inputmethod/latin/SettingsValues.java | |
parent | 66cee1f92de0413756b8f306275d3508cd2b040f (diff) | |
download | latinime-ec60d60078b4837b657dc207bdbde1748749199e.tar.gz latinime-ec60d60078b4837b657dc207bdbde1748749199e.tar.xz latinime-ec60d60078b4837b657dc207bdbde1748749199e.zip |
Only add spaces automatically when appropriate.
Correctly check the variations to determine if we should
add automatic spaces (in manual picks and gestures) or not.
Bug: 7164981
Change-Id: I19e25af839b4062c217113cd804b1473912f22a5
Diffstat (limited to 'java/src/com/android/inputmethod/latin/SettingsValues.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/SettingsValues.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/SettingsValues.java b/java/src/com/android/inputmethod/latin/SettingsValues.java index 2a778aa0d..2f49fe92e 100644 --- a/java/src/com/android/inputmethod/latin/SettingsValues.java +++ b/java/src/com/android/inputmethod/latin/SettingsValues.java @@ -271,6 +271,10 @@ public final class SettingsValues { return mPhantomSpacePromotingSymbols.contains(String.valueOf((char)code)); } + public boolean shouldInsertSpacesAutomatically() { + return mInputAttributes.mShouldInsertSpacesAutomatically; + } + private static boolean isAutoCorrectEnabled(final Resources res, final String currentAutoCorrectionSetting) { final String autoCorrectionOff = res.getString( |