[IL94] Remove a function and some reordering
Bug: 8636060 Change-Id: I4baa237c9c7b58a8eb4158c34b9d3f3dfb95c69cmain
parent
37e1cc931f
commit
5b5e877efe
|
@ -1330,15 +1330,12 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
||||||
|
|
||||||
// TODO[IL]: Define a clear interface for this
|
// TODO[IL]: Define a clear interface for this
|
||||||
public void setSuggestedWords(final SuggestedWords words) {
|
public void setSuggestedWords(final SuggestedWords words) {
|
||||||
mInputLogic.mSuggestedWords = words;
|
|
||||||
if (mSuggestionStripView != null) {
|
if (mSuggestionStripView != null) {
|
||||||
mSuggestionStripView.setSuggestions(words);
|
mSuggestionStripView.setSuggestions(words);
|
||||||
mKeyboardSwitcher.onAutoCorrectionStateChanged(words.mWillAutoCorrect);
|
mKeyboardSwitcher.onAutoCorrectionStateChanged(words.mWillAutoCorrect);
|
||||||
}
|
}
|
||||||
setAutoCorrectionIndicator(words.mWillAutoCorrect);
|
mInputLogic.mSuggestedWords = words;
|
||||||
}
|
final boolean newAutoCorrectionIndicator = words.mWillAutoCorrect;
|
||||||
|
|
||||||
private void setAutoCorrectionIndicator(final boolean newAutoCorrectionIndicator) {
|
|
||||||
// Put a blue underline to a word in TextView which will be auto-corrected.
|
// Put a blue underline to a word in TextView which will be auto-corrected.
|
||||||
if (mInputLogic.mIsAutoCorrectionIndicatorOn != newAutoCorrectionIndicator
|
if (mInputLogic.mIsAutoCorrectionIndicatorOn != newAutoCorrectionIndicator
|
||||||
&& mInputLogic.mWordComposer.isComposingWord()) {
|
&& mInputLogic.mWordComposer.isComposingWord()) {
|
||||||
|
|
Loading…
Reference in New Issue