mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Merge "Remove a duplicate method (A36)"
This commit is contained in:
commit
bd1d711488
@ -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…
x
Reference in New Issue
Block a user