From 6ce66d1c7d4a5be9c6ed33e4f881994283d5eee9 Mon Sep 17 00:00:00 2001 From: Jean Chalard Date: Tue, 13 Nov 2012 15:10:07 +0900 Subject: Only add spaces automatically when appropriate. Bug: 7164981 Change-Id: Id672104a0fda99c52923913fb0e40c3a1ead4787 --- java/src/com/android/inputmethod/latin/SettingsValues.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'java/src/com/android/inputmethod/latin/SettingsValues.java') diff --git a/java/src/com/android/inputmethod/latin/SettingsValues.java b/java/src/com/android/inputmethod/latin/SettingsValues.java index 2a778aa0d..6bf37aa92 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.shouldInsertSpacesAutomatically(); + } + private static boolean isAutoCorrectEnabled(final Resources res, final String currentAutoCorrectionSetting) { final String autoCorrectionOff = res.getString( -- cgit v1.2.3-83-g751a