diff options
author | Ahaan Ugale <augale@google.com> | 2021-02-05 11:58:13 -0800 |
---|---|---|
committer | Ahaan Ugale <augale@google.com> | 2021-02-05 16:35:17 -0800 |
commit | 5b873f1366e84241015a81786761ef147790bf9b (patch) | |
tree | cea80658988d3416fdde63e2b42898b5feb98a3f /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 2bde0ac1d8a65f9a50e3b49a077d3e1a6db3993c (diff) |
Fix ellipsis reinitialization for static cached StaticLayout.
DynamicLayout uses a static StaticLayout instance internally to avoid
allocations. For the specific case of multiline, TruncateAt.START, and
no ellipsization needed (may also be triggered by slightly different
params), the ellipsis results for a reused static instance are not
modified. If the instance was previously ellipsized, the new result
keeps that ellipsization result even though it shouldn't be ellipsized
(at least for some lines).
Bug: 179524847
Test: atest DynamicLayoutBlocksTest DynamicLayoutTest TextLayoutTest \
TextViewTest
Change-Id: I1b4142648ec1b6b3fc2ece0ec55aac9539497134
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions