Merge "Super-fast getLineWidth for BL"

This commit is contained in:
John Reck
2015-10-09 14:16:04 +00:00
committed by Android (Google) Code Review

View File

@@ -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;