From fc137f35c8d7b03676475fbdeabdf82f89782419 Mon Sep 17 00:00:00 2001 From: Yohei Yukawa Date: Wed, 9 Jul 2014 23:40:25 +0900 Subject: 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 --- tests/src/com/android/inputmethod/compat/TextInfoCompatUtilsTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/src/com/android/inputmethod/compat/TextInfoCompatUtilsTests.java') 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)); -- cgit v1.2.3-83-g751a