diff options
author | 2014-07-09 14:59:20 +0000 | |
---|---|---|
committer | 2014-07-09 14:59:20 +0000 | |
commit | 757964ae46928536b3d19ef335147c10bd11050b (patch) | |
tree | 7d58c7ed98d5f90b2266fe00464f7335f3019e83 /tests/src/com/android/inputmethod/compat/TextInfoCompatUtilsTests.java | |
parent | 46111b79e6f11ef47c430e8f7050d2151fce1130 (diff) | |
parent | fc137f35c8d7b03676475fbdeabdf82f89782419 (diff) | |
download | latinime-757964ae46928536b3d19ef335147c10bd11050b.tar.gz latinime-757964ae46928536b3d19ef335147c10bd11050b.tar.xz latinime-757964ae46928536b3d19ef335147c10bd11050b.zip |
am fc137f35: Simplify the wrapper for TextInfo#getCharSequence
* commit 'fc137f35c8d7b03676475fbdeabdf82f89782419':
Simplify the wrapper for TextInfo#getCharSequence
Diffstat (limited to 'tests/src/com/android/inputmethod/compat/TextInfoCompatUtilsTests.java')
-rw-r--r-- | tests/src/com/android/inputmethod/compat/TextInfoCompatUtilsTests.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/src/com/android/inputmethod/compat/TextInfoCompatUtilsTests.java b/tests/src/com/android/inputmethod/compat/TextInfoCompatUtilsTests.java index 5721ed1ff..c399cced6 100644 --- a/tests/src/com/android/inputmethod/compat/TextInfoCompatUtilsTests.java +++ b/tests/src/com/android/inputmethod/compat/TextInfoCompatUtilsTests.java @@ -58,7 +58,7 @@ public class TextInfoCompatUtilsTests extends AndroidTestCase { final Spanned expectedSpanned = (Spanned) text.subSequence(TEST_CHAR_SEQUENCE_START, TEST_CHAR_SEQUENCE_END); final CharSequence actualCharSequence = - TextInfoCompatUtils.getCharSequence(textInfo, textInfo.getText()); + TextInfoCompatUtils.getCharSequenceOrString(textInfo); // This should be valid even if TextInfo#getCharSequence is not supported. assertTrue(TextUtils.equals(expectedSpanned, actualCharSequence)); |