aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2013-06-24 10:00:05 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-06-24 10:00:05 +0000
commitcdf774122d29754d91aac162f7e7416b65583ea9 (patch)
tree233f566322166200167c81d06542ab4ff24a1a00 /java/src
parentbfaf349c3554e11af8227a5f0807a74107a93069 (diff)
parentca52e1ca5abf8d233e901f76e5d443c427602316 (diff)
downloadlatinime-cdf774122d29754d91aac162f7e7416b65583ea9.tar.gz
latinime-cdf774122d29754d91aac162f7e7416b65583ea9.tar.xz
latinime-cdf774122d29754d91aac162f7e7416b65583ea9.zip
Merge "Fix a small bug"
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index ffac60267..0efe0eba7 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -43,7 +43,7 @@ import android.os.Message;
import android.os.SystemClock;
import android.preference.PreferenceManager;
import android.text.InputType;
-import android.text.SpannableString;
+import android.text.Spanned;
import android.text.TextUtils;
import android.text.style.SuggestionSpan;
import android.util.Log;
@@ -2517,10 +2517,10 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
final ArrayList<SuggestedWordInfo> suggestions = CollectionUtils.newArrayList();
final CharSequence word = range.mWord;
final String typedWord = word.toString();
- if (word instanceof SpannableString) {
- final SpannableString spannableString = (SpannableString)word;
+ if (word instanceof Spanned) {
+ final Spanned spanned = (Spanned)word;
int i = 0;
- for (Object object : spannableString.getSpans(0, spannableString.length(),
+ for (Object object : spanned.getSpans(0, spanned.length(),
SuggestionSpan.class)) {
SuggestionSpan span = (SuggestionSpan)object;
for (String s : span.getSuggestions()) {