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

Commit 44e8d60f authored by John Reck's avatar John Reck
Browse files

Super-fast getLineWidth for BL

Bug: 24678704
Change-Id: I952964f450d19b1e127753d00833eb7b34473bba
parent 0dba1f61
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;