Loading java/src/com/android/inputmethod/latin/LatinIME.java +6 −2 Original line number Diff line number Diff line Loading @@ -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()); Loading Loading @@ -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) { Loading @@ -1721,7 +1724,6 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar mKeyboardSwitcher.onAutoCorrectionStateChanged( words.hasWordAboveAutoCorrectionScoreThreshold()); } setAutoCorrectionIndicator(words); } private void setAutoCorrectionIndicator(final SuggestedWords words) { Loading Loading @@ -1851,6 +1853,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar } mWordComposer.setAutoCorrection(autoCorrection); setSuggestions(suggestedWords); setAutoCorrectionIndicator(suggestedWords); setSuggestionStripShown(isSuggestionsStripVisible()); } Loading Loading @@ -2024,6 +2027,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar public void setPunctuationSuggestions() { setSuggestions(mSettingsValues.mSuggestPuncList); setAutoCorrectionIndicator(mSettingsValues.mSuggestPuncList); setSuggestionStripShown(isSuggestionsStripVisible()); } Loading Loading
java/src/com/android/inputmethod/latin/LatinIME.java +6 −2 Original line number Diff line number Diff line Loading @@ -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()); Loading Loading @@ -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) { Loading @@ -1721,7 +1724,6 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar mKeyboardSwitcher.onAutoCorrectionStateChanged( words.hasWordAboveAutoCorrectionScoreThreshold()); } setAutoCorrectionIndicator(words); } private void setAutoCorrectionIndicator(final SuggestedWords words) { Loading Loading @@ -1851,6 +1853,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar } mWordComposer.setAutoCorrection(autoCorrection); setSuggestions(suggestedWords); setAutoCorrectionIndicator(suggestedWords); setSuggestionStripShown(isSuggestionsStripVisible()); } Loading Loading @@ -2024,6 +2027,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar public void setPunctuationSuggestions() { setSuggestions(mSettingsValues.mSuggestPuncList); setAutoCorrectionIndicator(mSettingsValues.mSuggestPuncList); setSuggestionStripShown(isSuggestionsStripVisible()); } Loading