Merge "Fix ellipsis reinitialization for static cached StaticLayout." into sc-dev

This commit is contained in:
Ahaan Ugale
2021-02-08 18:08:59 +00:00
committed by Android (Google) Code Review

View File

@@ -977,6 +977,9 @@ public class StaticLayout extends Layout {
calculateEllipsis(start, end, measured, widthStart,
ellipsisWidth, ellipsize, j,
textWidth, paint, forceEllipsis);
} else {
mLines[mColumns * j + ELLIPSIS_START] = 0;
mLines[mColumns * j + ELLIPSIS_COUNT] = 0;
}
}