Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ae90cfcc authored by Siyamed Sinir's avatar Siyamed Sinir Committed by Android (Google) Code Review
Browse files

Merge "Fix maxLines/lines properties for BoringLayout" into oc-mr1-dev

parents bbe2753d dcb33f16
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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) {