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

Commit 3ebdc0c3 authored by John Reck's avatar John Reck Committed by Android (Google) Code Review
Browse files

Merge "Super-fast getLineWidth for BL"

parents 76b08a9d 44e8d60f
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -363,6 +363,11 @@ public class BoringLayout extends Layout implements TextUtils.EllipsizeCallback
        return mMax;
    }

    @Override
    public float getLineWidth(int line) {
        return (line == 0 ? mMax : 0);
    }

    @Override
    public final Directions getLineDirections(int line) {
        return Layout.DIRS_ALL_LEFT_TO_RIGHT;