Loading java/src/com/android/inputmethod/latin/LatinIME.java +3 −7 Original line number Diff line number Diff line Loading @@ -1329,12 +1329,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen } } // TODO[IL]: Define a clear interface for this public void clearSuggestionStrip() { setSuggestedWords(SuggestedWords.EMPTY); setAutoCorrectionIndicator(false); } // TODO[IL]: Define a clear interface for this public void setSuggestedWords(final SuggestedWords words) { mInputLogic.mSuggestedWords = words; Loading Loading @@ -1432,10 +1426,12 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen private void showSuggestionStripWithTypedWord(final SuggestedWords suggestedWords, final String typedWord) { // TODO: refactor this if (suggestedWords.isEmpty()) { // No auto-correction is available, clear the cached values. AccessibilityUtils.getInstance().setAutoCorrection(SuggestedWords.EMPTY, typedWord); clearSuggestionStrip(); setSuggestedWords(SuggestedWords.EMPTY); setAutoCorrectionIndicator(false); return; } final String autoCorrection; Loading Loading
java/src/com/android/inputmethod/latin/LatinIME.java +3 −7 Original line number Diff line number Diff line Loading @@ -1329,12 +1329,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen } } // TODO[IL]: Define a clear interface for this public void clearSuggestionStrip() { setSuggestedWords(SuggestedWords.EMPTY); setAutoCorrectionIndicator(false); } // TODO[IL]: Define a clear interface for this public void setSuggestedWords(final SuggestedWords words) { mInputLogic.mSuggestedWords = words; Loading Loading @@ -1432,10 +1426,12 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen private void showSuggestionStripWithTypedWord(final SuggestedWords suggestedWords, final String typedWord) { // TODO: refactor this if (suggestedWords.isEmpty()) { // No auto-correction is available, clear the cached values. AccessibilityUtils.getInstance().setAutoCorrection(SuggestedWords.EMPTY, typedWord); clearSuggestionStrip(); setSuggestedWords(SuggestedWords.EMPTY); setAutoCorrectionIndicator(false); return; } final String autoCorrection; Loading