diff options
author | 2014-01-28 09:42:57 +0000 | |
---|---|---|
committer | 2014-01-28 09:42:57 +0000 | |
commit | 9214f17b862aa6b35dcda15ad14d3604e90988bb (patch) | |
tree | 5ee9ebe960276379f18a92c21c17755601c070a1 /java/src/com/android/inputmethod/latin/SuggestedWords.java | |
parent | 281966621705caf9240af4156e62d26d43d40ccb (diff) | |
parent | 491a6a6f236880e881e153396676713353062855 (diff) | |
download | latinime-9214f17b862aa6b35dcda15ad14d3604e90988bb.tar.gz latinime-9214f17b862aa6b35dcda15ad14d3604e90988bb.tar.xz latinime-9214f17b862aa6b35dcda15ad14d3604e90988bb.zip |
Merge "[IL100] Pull up a check"
Diffstat (limited to 'java/src/com/android/inputmethod/latin/SuggestedWords.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/SuggestedWords.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/SuggestedWords.java b/java/src/com/android/inputmethod/latin/SuggestedWords.java index bb34b7ba9..982a97a5e 100644 --- a/java/src/com/android/inputmethod/latin/SuggestedWords.java +++ b/java/src/com/android/inputmethod/latin/SuggestedWords.java @@ -39,6 +39,7 @@ public final class SuggestedWords { public static final SuggestedWords EMPTY = new SuggestedWords( EMPTY_WORD_INFO_LIST, false, false, false, false, false); + public final String mTypedWord; public final boolean mTypedWordValid; // 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", @@ -74,6 +75,7 @@ public final class SuggestedWords { mIsObsoleteSuggestions = isObsoleteSuggestions; mIsPrediction = isPrediction; mSequenceNumber = sequenceNumber; + mTypedWord = suggestedWordInfoList.isEmpty() ? null : getWord(INDEX_OF_TYPED_WORD); } public boolean isEmpty() { |