aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-03-09 00:40:10 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-03-09 00:40:10 -0800
commitd17ff7225a788edd12d52f38108f4ee22389df4b (patch)
treebfcf58004a09f367ce809996b92f39cc68ff8697 /java/src/com/android/inputmethod/latin/LatinIME.java
parentd492e2bf8d2961270b8fb548cea9095c67d7322a (diff)
parent195419b1ecb6d3fa8d7c6f4f7322c9d5a516b86f (diff)
downloadlatinime-d17ff7225a788edd12d52f38108f4ee22389df4b.tar.gz
latinime-d17ff7225a788edd12d52f38108f4ee22389df4b.tar.xz
latinime-d17ff7225a788edd12d52f38108f4ee22389df4b.zip
Merge "Small reorganization"
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index a3f422c9c..650909414 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -1857,6 +1857,11 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
|| mSuggestionsView.isShowingAddToDictionaryHint()) {
builder.setTypedWordValid(!allowsToBeAutoCorrected).setHasMinimalSuggestion(
autoCorrectionAvailable);
+ if (Suggest.shouldBlockAutoCorrectionBySafetyNet(builder, mSuggest,
+ mSettingsValues.mAutoCorrectionThreshold)) {
+ builder.setShouldBlockAutoCorrectionBySafetyNet();
+ }
+ showSuggestions(builder.build(), typedWord);
} else {
SuggestedWords previousSuggestions = mSuggestionsView.getSuggestions();
if (previousSuggestions == mSettingsValues.mSuggestPuncList) {
@@ -1866,12 +1871,8 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
previousSuggestions = SuggestedWords.EMPTY;
}
builder.addTypedWordAndPreviousSuggestions(typedWord, previousSuggestions);
+ showSuggestions(builder.build(), typedWord);
}
- if (Suggest.shouldBlockAutoCorrectionBySafetyNet(builder, mSuggest,
- mSettingsValues.mAutoCorrectionThreshold)) {
- builder.setShouldBlockAutoCorrectionBySafetyNet();
- }
- showSuggestions(builder.build(), typedWord);
}
public void showSuggestions(final SuggestedWords suggestedWords, final CharSequence typedWord) {