Merge "Fix maxLines/lines properties for BoringLayout" into oc-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
ae90cfccee
@@ -8409,7 +8409,8 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
|
||||
|
||||
if (mMaxMode != LINES) {
|
||||
desired = Math.min(desired, mMaximum);
|
||||
} else if (cap && linecount > mMaximum && layout instanceof DynamicLayout) {
|
||||
} else if (cap && linecount > mMaximum && (layout instanceof DynamicLayout
|
||||
|| layout instanceof BoringLayout)) {
|
||||
desired = layout.getLineTop(mMaximum);
|
||||
|
||||
if (dr != null) {
|
||||
|
||||
Reference in New Issue
Block a user