diff options
author | 2012-04-17 02:51:28 -0700 | |
---|---|---|
committer | 2012-04-17 02:51:28 -0700 | |
commit | 23980cdba4b362157bf73b67f8145365a7ce974e (patch) | |
tree | e6f1468e0c21ef6c8f3de8b8cdc67f32c2ab53f5 /java | |
parent | fec6837ae177ae103bd1a09bb9afb1dc799519f3 (diff) | |
parent | 65ebe190a9f7dc8cc5db5e29d2c0d33040e63f08 (diff) | |
download | latinime-23980cdba4b362157bf73b67f8145365a7ce974e.tar.gz latinime-23980cdba4b362157bf73b67f8145365a7ce974e.tar.xz latinime-23980cdba4b362157bf73b67f8145365a7ce974e.zip |
Merge "Do not pass misspelled flags to TextView"
Diffstat (limited to 'java')
-rw-r--r-- | java/src/com/android/inputmethod/compat/SuggestionSpanUtils.java | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/java/src/com/android/inputmethod/compat/SuggestionSpanUtils.java b/java/src/com/android/inputmethod/compat/SuggestionSpanUtils.java index d97989d9c..25afef1e6 100644 --- a/java/src/com/android/inputmethod/compat/SuggestionSpanUtils.java +++ b/java/src/com/android/inputmethod/compat/SuggestionSpanUtils.java @@ -131,16 +131,11 @@ public class SuggestionSpanUtils { sameAsTyped = true; } } - // TODO: Share the implementation for checking typed word validity between the IME - // and the spell checker. - final int flag = (sameAsTyped && !suggestedWords.mTypedWordValid) - ? (OBJ_FLAG_EASY_CORRECT | OBJ_FLAG_MISSPELLED) - : 0; // TODO: We should avoid adding suggestion span candidates that came from the bigram // prediction. final Object[] args = - { context, null, suggestionsList.toArray(new String[suggestionsList.size()]), flag, + { context, null, suggestionsList.toArray(new String[suggestionsList.size()]), 0, (Class<?>) SuggestionSpanPickedNotificationReceiver.class }; final Object ss = CompatUtils.newInstance(CONSTRUCTOR_SuggestionSpan, args); if (ss == null) { |