summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Justin Ghan <justinghan@google.com> 2022-10-04 12:17:28 -0700
committer Justin Ghan <justinghan@google.com> 2022-10-04 12:17:28 -0700
commit83162821c7a721382791acddf5be136d1130f8b1 (patch)
tree1a7082fa83647f6acdc0bbb4ce83dd95688e4e8f /libs/androidfw/StringPool.cpp
parent94debd30981c5501ff1d2f2319acf3b909c72d4b (diff)
Fix whitespace removal bug
The implementation of whitespace removal in performHandwritingDeleteGesture had a bug causing an IndexOutOfBoundsException when the whitespace was at the start or end of the text. This also fixes the whitespace removal code in performHandwritingJoinOrSplitGesture to properly handle supplementary characters. Bug: 243983058 Test: atest android.widget.cts.TextViewHandwritingGestureTest Change-Id: I3cfef91d05d5619668ccfc0d1259b6b1fd96bed9
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions