diff options
author | 2014-07-09 23:40:25 +0900 | |
---|---|---|
committer | 2014-07-09 23:52:44 +0900 | |
commit | fc137f35c8d7b03676475fbdeabdf82f89782419 (patch) | |
tree | 4f711967cb8f58a1b07305152898c341cdef1c43 /tests/src/com/android/inputmethod/compat | |
parent | ba1cd8a44a7911fcd685afc8bb0263ef44bce8f3 (diff) | |
download | latinime-fc137f35c8d7b03676475fbdeabdf82f89782419.tar.gz latinime-fc137f35c8d7b03676475fbdeabdf82f89782419.tar.xz latinime-fc137f35c8d7b03676475fbdeabdf82f89782419.zip |
Simplify the wrapper for TextInfo#getCharSequence
This CL simplifies the wrapper method for
TextInfo#getCharSequence() because in the almost all cases we want
to use the result of TextInfo#getText() as the default value.
BUG: 16029304
Change-Id: I62f987aed8ca42b093255e6c0703d6120fa01299
Diffstat (limited to 'tests/src/com/android/inputmethod/compat')
-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)); |