Merge "Remove a duplicate method (A36)"
This commit is contained in:
commit
bd1d711488
2 changed files with 1 additions and 5 deletions
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue