summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Haoyu Zhang <haoyuchang@google.com> 2024-07-25 16:29:55 -0700
committer Haoyu Zhang <haoyuchang@google.com> 2024-07-26 21:01:05 +0000
commit54716a54e4521e6c270453598101eea2ee792a96 (patch)
treefb82cdd1577b082dfba0d4826179f2c1e86d3968 /libs/androidfw/StringPool.cpp
parent22bba40d47d9bdbad7abd4d5ee35d163d0acf298 (diff)
Fix insert mode crash when text has UpdateLayout span
Previously, when text has UpdateLayout span and OffsetMapping(typically used by insert mode) the DynamicLayout reflow the wrong range when the span is updated. As a result, DynamicLayout will enter an inconsistent state where getLineStart/End() will return the wrong result. This CL fixed the issue by applying the reflow correctly. Bug: 355137282 Test: DynamicLayoutOffsetMappingTest Flag: com.android.text.flags.insert_mode_crash_update_layout_span Change-Id: I5bd3980ff3adf22f1ff843941e303f540dac730d
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions