From cfed2739221105163893cecdc9402cd9ddc0ab93 Mon Sep 17 00:00:00 2001 From: Jean Chalard Date: Thu, 15 Sep 2011 14:31:24 +0900 Subject: Add an option to user dict to match more precise locales This should not be used lightly, as it violates the general contract of locale, and does kill some legitimate (albeit alledgedly rare) use patterns. Currently, the spell checker uses this because it uses a negative logic: it should match broadly, and when in doubt, match even more broadly, which is almost never the case of something that uses the locale. In other words: don't use this option unless you are very, VERY sure that's what you want. Hint: it isn't Bug: 5280929 Change-Id: Ib3cae319c692161d653630038c5bcde1f4340c05 --- .../inputmethod/latin/spellcheck/AndroidSpellCheckerService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java') diff --git a/java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java b/java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java index dfa0abf1b..0864526d9 100644 --- a/java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java +++ b/java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java @@ -237,7 +237,7 @@ public class AndroidSpellCheckerService extends SpellCheckerService { final String localeStr = locale.toString(); Dictionary userDict = mUserDictionaries.get(localeStr); if (null == userDict) { - userDict = new SynchronouslyLoadedUserDictionary(this, localeStr); + userDict = new SynchronouslyLoadedUserDictionary(this, localeStr, true); mUserDictionaries.put(localeStr, userDict); } dictionaryCollection.addDictionary(userDict); -- cgit v1.2.3-83-g751a