[go: nahoru, domu]

Change maxLines and ellipsis argument from nullable to non-null

There is no merge concept in Paragraphs, so just set the reasonable
default value for these arguments.

Bug: 139319934
Test: TreeHuger
Change-Id: I46dac259bcd950ec5c66ecd79c4acac2675b68ba
diff --git a/ui/ui-text/src/androidTest/java/androidx/ui/text/platform/AndroidParagraphTest.kt b/ui/ui-text/src/androidTest/java/androidx/ui/text/platform/AndroidParagraphTest.kt
index cf1bf64..845d771 100644
--- a/ui/ui-text/src/androidTest/java/androidx/ui/text/platform/AndroidParagraphTest.kt
+++ b/ui/ui-text/src/androidTest/java/androidx/ui/text/platform/AndroidParagraphTest.kt
@@ -1187,8 +1187,8 @@
         textIndent: TextIndent? = null,
         textAlign: TextAlign? = null,
         textDirectionAlgorithm: TextDirectionAlgorithm? = TextDirectionAlgorithm.ContentOrLtr,
-        ellipsis: Boolean? = null,
-        maxLines: Int? = null,
+        ellipsis: Boolean = false,
+        maxLines: Int = Int.MAX_VALUE,
         constraints: ParagraphConstraints,
         textStyle: TextStyle? = null,
         typefaceAdapter: TypefaceAdapter = TypefaceAdapter()