mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Merge "[IL100] Pull up a check"
This commit is contained in:
commit
9214f17b86
@ -1428,8 +1428,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
|||||||
|
|
||||||
// TODO[IL]: Define a clean interface for this
|
// TODO[IL]: Define a clean interface for this
|
||||||
public void showSuggestionStrip(final SuggestedWords suggestedWords) {
|
public void showSuggestionStrip(final SuggestedWords suggestedWords) {
|
||||||
showSuggestionStripWithTypedWord(suggestedWords, suggestedWords.isEmpty() ? null
|
showSuggestionStripWithTypedWord(suggestedWords, suggestedWords.mTypedWord);
|
||||||
: suggestedWords.getWord(SuggestedWords.INDEX_OF_TYPED_WORD));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Called from {@link SuggestionStripView} through the {@link SuggestionStripView#Listener}
|
// Called from {@link SuggestionStripView} through the {@link SuggestionStripView#Listener}
|
||||||
|
@ -39,6 +39,7 @@ public final class SuggestedWords {
|
|||||||
public static final SuggestedWords EMPTY = new SuggestedWords(
|
public static final SuggestedWords EMPTY = new SuggestedWords(
|
||||||
EMPTY_WORD_INFO_LIST, false, false, false, false, false);
|
EMPTY_WORD_INFO_LIST, false, false, false, false, false);
|
||||||
|
|
||||||
|
public final String mTypedWord;
|
||||||
public final boolean mTypedWordValid;
|
public final boolean mTypedWordValid;
|
||||||
// Note: this INCLUDES cases where the word will auto-correct to itself. A good definition
|
// Note: this INCLUDES cases where the word will auto-correct to itself. A good definition
|
||||||
// of what this flag means would be "the top suggestion is strong enough to auto-correct",
|
// of what this flag means would be "the top suggestion is strong enough to auto-correct",
|
||||||
@ -74,6 +75,7 @@ public final class SuggestedWords {
|
|||||||
mIsObsoleteSuggestions = isObsoleteSuggestions;
|
mIsObsoleteSuggestions = isObsoleteSuggestions;
|
||||||
mIsPrediction = isPrediction;
|
mIsPrediction = isPrediction;
|
||||||
mSequenceNumber = sequenceNumber;
|
mSequenceNumber = sequenceNumber;
|
||||||
|
mTypedWord = suggestedWordInfoList.isEmpty() ? null : getWord(INDEX_OF_TYPED_WORD);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isEmpty() {
|
public boolean isEmpty() {
|
||||||
|
Loading…
Reference in New Issue
Block a user