am a3ea4be5: Prevent SpellChecker from setting invalid range - DO NOT MERGE
* commit 'a3ea4be5425fc2a561290c08a9f5f31f374afc31': Prevent SpellChecker from setting invalid range - DO NOT MERGE
This commit is contained in:
@@ -731,10 +731,14 @@ public class SpellChecker implements SpellCheckerSessionListener {
|
||||
}
|
||||
}
|
||||
|
||||
if (scheduleOtherSpellCheck) {
|
||||
if (scheduleOtherSpellCheck && wordStart <= end) {
|
||||
// Update range span: start new spell check from last wordStart
|
||||
setRangeSpan(editable, wordStart, end);
|
||||
} else {
|
||||
if (DBG && scheduleOtherSpellCheck) {
|
||||
Log.w(TAG, "Trying to schedule spellcheck for invalid region, from "
|
||||
+ wordStart + " to " + end);
|
||||
}
|
||||
removeRangeSpan(editable);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user