Forgot to remove reference to deleted class.
Change-Id: Ic662a536e468390a3f7266daf9c56e4fc5a70ac6main
parent
15cccfcb0d
commit
63a0bdb41b
|
@ -26,7 +26,6 @@ import android.text.style.SuggestionSpan;
|
||||||
import com.android.inputmethod.annotations.UsedForTesting;
|
import com.android.inputmethod.annotations.UsedForTesting;
|
||||||
import com.android.inputmethod.latin.SuggestedWords;
|
import com.android.inputmethod.latin.SuggestedWords;
|
||||||
import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo;
|
import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo;
|
||||||
import com.android.inputmethod.latin.SuggestionSpanPickedNotificationReceiver;
|
|
||||||
import com.android.inputmethod.latin.common.LocaleUtils;
|
import com.android.inputmethod.latin.common.LocaleUtils;
|
||||||
import com.android.inputmethod.latin.define.DebugFlags;
|
import com.android.inputmethod.latin.define.DebugFlags;
|
||||||
|
|
||||||
|
@ -65,8 +64,7 @@ public final class SuggestionSpanUtils {
|
||||||
final Spannable spannable = new SpannableString(text);
|
final Spannable spannable = new SpannableString(text);
|
||||||
// TODO: Set locale if it is feasible.
|
// TODO: Set locale if it is feasible.
|
||||||
final SuggestionSpan suggestionSpan = new SuggestionSpan(context, null /* locale */,
|
final SuggestionSpan suggestionSpan = new SuggestionSpan(context, null /* locale */,
|
||||||
new String[] {} /* suggestions */, OBJ_FLAG_AUTO_CORRECTION,
|
new String[] {} /* suggestions */, OBJ_FLAG_AUTO_CORRECTION, null);
|
||||||
SuggestionSpanPickedNotificationReceiver.class);
|
|
||||||
spannable.setSpan(suggestionSpan, 0, text.length(),
|
spannable.setSpan(suggestionSpan, 0, text.length(),
|
||||||
Spanned.SPAN_EXCLUSIVE_EXCLUSIVE | Spanned.SPAN_COMPOSING);
|
Spanned.SPAN_EXCLUSIVE_EXCLUSIVE | Spanned.SPAN_COMPOSING);
|
||||||
return spannable;
|
return spannable;
|
||||||
|
@ -96,8 +94,7 @@ public final class SuggestionSpanUtils {
|
||||||
}
|
}
|
||||||
// TODO: Set locale if it is feasible.
|
// TODO: Set locale if it is feasible.
|
||||||
final SuggestionSpan suggestionSpan = new SuggestionSpan(context, null /* locale */,
|
final SuggestionSpan suggestionSpan = new SuggestionSpan(context, null /* locale */,
|
||||||
suggestionsList.toArray(new String[suggestionsList.size()]), 0 /* flags */,
|
suggestionsList.toArray(new String[suggestionsList.size()]), 0 /* flags */, null);
|
||||||
SuggestionSpanPickedNotificationReceiver.class);
|
|
||||||
final Spannable spannable = new SpannableString(pickedWord);
|
final Spannable spannable = new SpannableString(pickedWord);
|
||||||
spannable.setSpan(suggestionSpan, 0, pickedWord.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
|
spannable.setSpan(suggestionSpan, 0, pickedWord.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
|
||||||
return spannable;
|
return spannable;
|
||||||
|
|
Loading…
Reference in New Issue