Commit 76c23aff authored by Jerome Gaillard's avatar Jerome Gaillard
Browse files

Resize all LineBreakers arrays when needed

When there are more line breaks in a text field than the initial size of
16 in StaticLayout.LineBreaks, layoutlib must resize all the arrays,
even if it does not use ascents or descents for displaying. Otherwise
there can be an IndexOutOfBoundsException.

Bug: 117642391
Test: RenderTests.testManyLineBreaks added
Change-Id: Ifb00d64a6e501c8a07ff126f245e7c80106794c6
parent ddc1f1d5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment