diff options
author | Qi Wang <zakwang@google.com> | 2021-05-18 18:50:34 +0800 |
---|---|---|
committer | Qi Wang <zakwang@google.com> | 2021-05-21 15:15:06 +0800 |
commit | 7f2343de99be99f27bf1d38422b199ea1a2666bf (patch) | |
tree | 0c7cc29cc55e3bc64cfccc1486336baccad9afbb /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 1d2868c45b52c68ef28b3a84b13dcc7347461c7f (diff) |
Fix a bug in SpellCheckSpan update logic.
The the text is changed, we need to remove all affected SpellCheckSpan.
However, the previous check logic can not work correctly, and may
leave some out-of-date SpellCheckSpan, which causes problem when the
SpellChecker tries to apply suggestions on those spans later.
Also fixed the bug that the offset is not calculated correctly when we
validate spell checker suggestions.
Fix: 188107864
Change-Id: I8dc806d96b6a75255277d6de013305557835cb6d
Test: atest CtsInputMethodTestCases:SpellCheckerTest
Test: atest android.widget.cts.TextViewTest
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions