From 65ebe190a9f7dc8cc5db5e29d2c0d33040e63f08 Mon Sep 17 00:00:00 2001
From: satok <satok@google.com>
Date: Tue, 17 Apr 2012 15:39:15 +0900
Subject: [PATCH] Do not pass misspelled flags to TextView

Bug: 6310268
Original CL: I2f7a54ae0d63235a0b94e039109ab8

Change-Id: I28f64a4d0bb262db819f5f8c0ffc58a259c8e62d
---
 .../android/inputmethod/compat/SuggestionSpanUtils.java    | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/java/src/com/android/inputmethod/compat/SuggestionSpanUtils.java b/java/src/com/android/inputmethod/compat/SuggestionSpanUtils.java
index d97989d9c0..25afef1e67 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) {
-- 
GitLab