@@ -76,7 +76,7 @@ public DynamicLayout(CharSequence base, CharSequence display,
7676 boolean includepad ,
7777 TextUtils .TruncateAt ellipsize , int ellipsizedWidth ) {
7878 this (base , display , paint , width , align , TextDirectionHeuristics .FIRSTSTRONG_LTR ,
79- spacingmult , spacingadd , includepad , ellipsize , ellipsizedWidth , Integer . MAX_VALUE );
79+ spacingmult , spacingadd , includepad , ellipsize , ellipsizedWidth );
8080 }
8181
8282 /**
@@ -93,7 +93,7 @@ public DynamicLayout(CharSequence base, CharSequence display,
9393 int width , Alignment align , TextDirectionHeuristic textDir ,
9494 float spacingmult , float spacingadd ,
9595 boolean includepad ,
96- TextUtils .TruncateAt ellipsize , int ellipsizedWidth , int maxLines ) {
96+ TextUtils .TruncateAt ellipsize , int ellipsizedWidth ) {
9797 super ((ellipsize == null )
9898 ? display
9999 : (display instanceof Spanned )
@@ -135,8 +135,6 @@ public DynamicLayout(CharSequence base, CharSequence display,
135135 mEllipsize = true ;
136136 }
137137
138- mMaxLines = maxLines ;
139-
140138 // Initial state is a single line with 0 characters (0 to 0),
141139 // with top at 0 and bottom at whatever is natural, and
142140 // undefined ellipsis.
@@ -285,7 +283,7 @@ private void reflow(CharSequence s, int where, int before, int after) {
285283 reflowed .generate (text , where , where + after ,
286284 getPaint (), getWidth (), getAlignment (), getTextDirectionHeuristic (),
287285 getSpacingMultiplier (), getSpacingAdd (),
288- false , true , mEllipsizedWidth , mEllipsizeAt , mMaxLines );
286+ false , true , mEllipsizedWidth , mEllipsizeAt );
289287 int n = reflowed .getLineCount ();
290288
291289 // If the new layout has a blank line at the end, but it is not
@@ -490,8 +488,6 @@ public int getEllipsisCount(int line) {
490488
491489 private int mTopPadding , mBottomPadding ;
492490
493- private int mMaxLines ;
494-
495491 private static StaticLayout sStaticLayout = new StaticLayout (null );
496492
497493 private static final Object [] sLock = new Object [0 ];
0 commit comments