diff options
author | 2012-03-02 19:59:55 +0900 | |
---|---|---|
committer | 2012-03-02 19:59:55 +0900 | |
commit | 5bc2b61274d20adf4e1b0d5728fef43c6cd51429 (patch) | |
tree | 0b7da757cef3cbe7790d900aa008f6a1ed515993 /java/src | |
parent | d02783cb63293507e8544ea60d07559092ce83d4 (diff) | |
download | latinime-5bc2b61274d20adf4e1b0d5728fef43c6cd51429.tar.gz latinime-5bc2b61274d20adf4e1b0d5728fef43c6cd51429.tar.xz latinime-5bc2b61274d20adf4e1b0d5728fef43c6cd51429.zip |
Move a method up a level
Change-Id: I6b9a697480127e4745698ab19f8a360b86ff39ca
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index a68e20a5a..2217dd2b3 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -979,7 +979,9 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar .setTypedWordValid(false) .setHasMinimalSuggestion(false); // When in fullscreen mode, show completions generated by the application - setSuggestions(builder.build()); + final SuggestedWords words = builder.build(); + setSuggestions(words); + setAutoCorrectionIndicator(words); // TODO: is this the right thing to do? What should we auto-correct to in // this case? This says to keep whatever the user typed. mWordComposer.setAutoCorrection(mWordComposer.getTypedWord()); @@ -1713,6 +1715,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar public void clearSuggestions() { setSuggestions(SuggestedWords.EMPTY); + setAutoCorrectionIndicator(SuggestedWords.EMPTY); } public void setSuggestions(final SuggestedWords words) { @@ -1721,7 +1724,6 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar mKeyboardSwitcher.onAutoCorrectionStateChanged( words.hasWordAboveAutoCorrectionScoreThreshold()); } - setAutoCorrectionIndicator(words); } private void setAutoCorrectionIndicator(final SuggestedWords words) { @@ -1851,6 +1853,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar } mWordComposer.setAutoCorrection(autoCorrection); setSuggestions(suggestedWords); + setAutoCorrectionIndicator(suggestedWords); setSuggestionStripShown(isSuggestionsStripVisible()); } @@ -2024,6 +2027,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar public void setPunctuationSuggestions() { setSuggestions(mSettingsValues.mSuggestPuncList); + setAutoCorrectionIndicator(mSettingsValues.mSuggestPuncList); setSuggestionStripShown(isSuggestionsStripVisible()); } |