summaryrefslogtreecommitdiff
path: root/libs/androidfw/AssetManager2.cpp
diff options
context:
space:
mode:
author Justin Ghan <justinghan@google.com> 2022-10-04 16:30:58 -0700
committer Justin Ghan <justinghan@google.com> 2022-10-10 00:19:00 -0700
commitb34559a74a4357a0e93ca1f2ce4f0e45be0b5355 (patch)
tree7a4ae3bef492b1da728f76625fca3d7a3a0dabb8 /libs/androidfw/AssetManager2.cpp
parent91226107447742253e6fc7444ebeb52e4f785f42 (diff)
Remove space gesture: improve range calculation
The initial implementation using Layout#getOffsetForHorizontal could miss whitespace characters at the endpoints. This new implementation using Layout#getRangeForRect ensures all whitespace characters touched are included in the range. Bug: 247557062 Test: atest android.widget.cts.TextViewHandwritingGestureTest Change-Id: I800407a6d89d77cd5e750530d9dae8ccb268869f
Diffstat (limited to 'libs/androidfw/AssetManager2.cpp')
0 files changed, 0 insertions, 0 deletions