summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorAhaan Ugale <augale@google.com>2021-02-05 11:58:13 -0800
committerAhaan Ugale <augale@google.com>2021-02-05 16:35:17 -0800
commit5b873f1366e84241015a81786761ef147790bf9b (patch)
treecea80658988d3416fdde63e2b42898b5feb98a3f /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent2bde0ac1d8a65f9a50e3b49a077d3e1a6db3993c (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