Remove a duplicate method (A36)

Bug: 6705473
Change-Id: Ib6260034b09739b60071e90a018b2dc6be3815d7
This commit is contained in:
Jean Chalard 2012-06-28 19:43:09 +09:00
parent 84074cf503
commit aba432bf8d
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) {
final CharSequence autoCorrection;
if (suggestedWords.size() > 0) {
if (suggestedWords.hasAutoCorrectionWord()) {
if (suggestedWords.mWillAutoCorrect) {
autoCorrection = suggestedWords.getWord(1);
} else {
autoCorrection = typedWord;

View file

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