diff options
author | 2013-12-19 21:45:08 +0900 | |
---|---|---|
committer | 2013-12-20 15:13:48 +0900 | |
commit | a905fcec00f78e828c1fe9109f27cc9f149941b5 (patch) | |
tree | cde113cf286adfae83cd579dee52ade374776d05 /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | 6e97efef78f32daebed7ec3b0624cd645072ec84 (diff) | |
download | latinime-a905fcec00f78e828c1fe9109f27cc9f149941b5.tar.gz latinime-a905fcec00f78e828c1fe9109f27cc9f149941b5.tar.xz latinime-a905fcec00f78e828c1fe9109f27cc9f149941b5.zip |
[IL16] Improve getTextWithSuggestionSpan
Dynamically test for the presence of main dict suggestions. This
is much more potent and more accurate than the vaguely defined
boolean.
Also, resolve a TODO and avoid creating an object uselessly.
Not directly related, but helpful with:
Bug: 8636060
Change-Id: Ib1745f77ee6d9ec7cd8bbfa5a548652ec84ec902
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index e9988bf5b..12950a0b2 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -2026,7 +2026,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen final String separatorString) { final SuggestedWords suggestedWords = mInputLogic.mSuggestedWords; mInputLogic.mConnection.commitText(SuggestionSpanUtils.getTextWithSuggestionSpan( - this, chosenWord, suggestedWords, mIsMainDictionaryAvailable), 1); + this, chosenWord, suggestedWords), 1); // Add the word to the user history dictionary final String prevWord = addToUserHistoryDictionary(chosenWord); // TODO: figure out here if this is an auto-correct or if the best word is actually |