Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ae586241 authored by Jay Shrauner's avatar Jay Shrauner Committed by Android (Google) Code Review
Browse files

Merge "Prevent SpellChecker from setting invalid range"

parents 940591d9 ea4adf28
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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);
            }