summaryrefslogtreecommitdiff
path: root/libs/input/TouchSpotController.cpp
diff options
context:
space:
mode:
author Haoyu Zhang <haoyuchang@google.com> 2024-01-17 17:02:54 -0800
committer Haoyu Zhang <haoyuchang@google.com> 2024-01-23 12:55:15 -0800
commit97edc8f25a7f53a74ef7f7cfeb4cf9d89b361f9c (patch)
treeae32bf028ae92e811d8610b413a41edb2c0dbee8 /libs/input/TouchSpotController.cpp
parent64fccbba24fc7071536e320bd27e300ba2a4f564 (diff)
Fix: insert mode crash when delete
When the editor has a Span that implement UpdateLayout, deleting text in insert mode will crash the APP. This is due to the fact that updating the text will also trigger span update. And then trigger the DynamicLayout updates and display list update. Because the insert mode applied a transformation on the text, it's hard to know the updated text range on the transformed text. This CL fixed the issue by always updating the entire when span is updated. Bug: 314254153 Test: mannually tested as the Editor.java is hidden Change-Id: If4953de0ae37f92683e5c12c7a11b29a43260fa3
Diffstat (limited to 'libs/input/TouchSpotController.cpp')
0 files changed, 0 insertions, 0 deletions