Merge "Remove a duplicate method (A36)"

This commit is contained in:
Jean Chalard 2012-07-01 22:36:38 -07:00 committed by Android (Google) Code Review
commit bd1d711488
2 changed files with 1 additions and 5 deletions

View file

@ -1742,7 +1742,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
public void showSuggestions(final SuggestedWords suggestedWords, final CharSequence typedWord) { public void showSuggestions(final SuggestedWords suggestedWords, final CharSequence typedWord) {
final CharSequence autoCorrection; final CharSequence autoCorrection;
if (suggestedWords.size() > 0) { if (suggestedWords.size() > 0) {
if (suggestedWords.hasAutoCorrectionWord()) { if (suggestedWords.mWillAutoCorrect) {
autoCorrection = suggestedWords.getWord(1); autoCorrection = suggestedWords.getWord(1);
} else { } else {
autoCorrection = typedWord; autoCorrection = typedWord;

View file

@ -66,10 +66,6 @@ public class SuggestedWords {
return mSuggestedWordInfoList.get(pos); return mSuggestedWordInfoList.get(pos);
} }
public boolean hasAutoCorrectionWord() {
return mHasAutoCorrectionCandidate && size() > 1 && !mTypedWordValid;
}
public boolean willAutoCorrect() { public boolean willAutoCorrect() {
return mWillAutoCorrect; return mWillAutoCorrect;
} }