mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Remove a duplicate method (A36)
Bug: 6705473 Change-Id: Ib6260034b09739b60071e90a018b2dc6be3815d7
This commit is contained in:
parent
84074cf503
commit
aba432bf8d
@ -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;
|
||||
|
@ -66,10 +66,6 @@ public class SuggestedWords {
|
||||
return mSuggestedWordInfoList.get(pos);
|
||||
}
|
||||
|
||||
public boolean hasAutoCorrectionWord() {
|
||||
return mHasAutoCorrectionCandidate && size() > 1 && !mTypedWordValid;
|
||||
}
|
||||
|
||||
public boolean willAutoCorrect() {
|
||||
return mWillAutoCorrect;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user