diff options
author | 2009-04-09 22:15:20 -0700 | |
---|---|---|
committer | 2009-04-09 22:15:20 -0700 | |
commit | ab17fca519fa27af01d29a38c553e250c9e92a9e (patch) | |
tree | e19ad8cb56595ac71ddd9480e53b2593aad15fe9 /src | |
parent | e653fc559022bc2840902f3dce194746ace3ebce (diff) | |
download | latinime-ab17fca519fa27af01d29a38c553e250c9e92a9e.tar.gz latinime-ab17fca519fa27af01d29a38c553e250c9e92a9e.tar.xz latinime-ab17fca519fa27af01d29a38c553e250c9e92a9e.zip |
AI 145663: Disable auto-correction for Dream. Also fixes bug # 1776404.
Have a boolean resource to specify auto correction default: Will be turned on/off for different targets
and languages.
Move English dictionary to raw-en so that French locale doesn't get the English suggestions.
Make the LatinIME the default for supported latin languages.
BUG=1776404
Automated import of CL 145663
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/inputmethod/latin/LatinIME.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/inputmethod/latin/LatinIME.java b/src/com/android/inputmethod/latin/LatinIME.java index a36ff5747..f81637580 100644 --- a/src/com/android/inputmethod/latin/LatinIME.java +++ b/src/com/android/inputmethod/latin/LatinIME.java @@ -1005,7 +1005,8 @@ public class LatinIME extends InputMethodService // will continue to work if (AutoText.getSize(mInputView) < 1) mQuickFixes = true; mShowSuggestions = sp.getBoolean(PREF_SHOW_SUGGESTIONS, true) & mQuickFixes; - mAutoComplete = sp.getBoolean(PREF_AUTO_COMPLETE, true) & mShowSuggestions; + mAutoComplete = sp.getBoolean(PREF_AUTO_COMPLETE, + getResources().getBoolean(R.bool.enable_autocorrect)) & mShowSuggestions; mAutoCorrectOn = mSuggest != null && (mAutoComplete || mQuickFixes); mCorrectionMode = mAutoComplete ? 2 : (mQuickFixes ? 1 : 0); } |