diff options
author | 2013-09-25 08:10:08 -0700 | |
---|---|---|
committer | 2013-09-25 08:10:08 -0700 | |
commit | 6c0e48b1adffd3ad9d2ccbc2bb2044555ff5a510 (patch) | |
tree | 50b831df26f69f11dd3242a15aa02908e5f61f09 /java/src/com/android/inputmethod/latin/RichInputConnection.java | |
parent | a2174bad22c722f31f864ec1b673661061591fd6 (diff) | |
parent | 4350a93aa5447f92304bea3f8bbf00bbf6c35498 (diff) | |
download | latinime-6c0e48b1adffd3ad9d2ccbc2bb2044555ff5a510.tar.gz latinime-6c0e48b1adffd3ad9d2ccbc2bb2044555ff5a510.tar.xz latinime-6c0e48b1adffd3ad9d2ccbc2bb2044555ff5a510.zip |
am 4350a93a: Merge "Fix the offdevice regression test build"
* commit '4350a93aa5447f92304bea3f8bbf00bbf6c35498':
Fix the offdevice regression test build
Diffstat (limited to 'java/src/com/android/inputmethod/latin/RichInputConnection.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/RichInputConnection.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/RichInputConnection.java b/java/src/com/android/inputmethod/latin/RichInputConnection.java index 925381b50..8580a6e54 100644 --- a/java/src/com/android/inputmethod/latin/RichInputConnection.java +++ b/java/src/com/android/inputmethod/latin/RichInputConnection.java @@ -30,6 +30,7 @@ import com.android.inputmethod.latin.define.ProductionFlag; import com.android.inputmethod.latin.settings.SettingsValues; import com.android.inputmethod.latin.utils.CapsModeUtils; import com.android.inputmethod.latin.utils.DebugLogUtils; +import com.android.inputmethod.latin.utils.SpannableStringUtils; import com.android.inputmethod.latin.utils.StringUtils; import com.android.inputmethod.latin.utils.TextRange; import com.android.inputmethod.research.ResearchLogger; @@ -610,8 +611,9 @@ public final class RichInputConnection { // We don't use TextUtils#concat because it copies all spans without respect to their // nature. If the text includes a PARAGRAPH span and it has been split, then // TextUtils#concat will crash when it tries to concat both sides of it. - return new TextRange(StringUtils.concatWithNonParagraphSuggestionSpansOnly(before, after), - startIndexInBefore, before.length() + endIndexInAfter, before.length()); + return new TextRange( + SpannableStringUtils.concatWithNonParagraphSuggestionSpansOnly(before, after), + startIndexInBefore, before.length() + endIndexInAfter, before.length()); } public boolean isCursorTouchingWord(final SettingsValues settingsValues) { |