summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorQi Wang <zakwang@google.com>2021-03-18 15:57:46 +0800
committerQi Wang <zakwang@google.com>2021-03-25 13:49:21 +0800
commit7e821f0539147b9e8959c4d5c5e39304a4946be0 (patch)
treebf30236b47d7bca596e3b01287f9abf7c4061c99 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent346aaf46af67d4f03c2189d1ff83b60cb9e2b59b (diff)
Fix the SuggestionSpan overwrite logic.
Previously, the SpellChecker use the start and end positions as the key to maintain the SuggestionSpan cache. However, the actual start/end position of the SuggestionSpan may changes when the text is changed. Hence we may not be able to find the corresponding SuggestonSpan for a new suggestion with the changed start/end positions. In this fix, we deprecated the cache and use Spanned#getSpans to find overlapped spans instead. Change-Id: I1e732f335ad745d85a7620e3ced6858551f18232 Fix: 182982338 Test: atest CtsInputMethodTestCases:SpellCheckerTest Change-Id: I327e5163499cfc978ff8480664a7e728b6ea7249
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions