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

Commit 94c349d8 authored by Jay Shrauner's avatar Jay Shrauner Committed by Android Git Automerger
Browse files

am 1276295b: am a3ea4be5: Prevent SpellChecker from setting invalid range - DO NOT MERGE

* commit '1276295b':
  Prevent SpellChecker from setting invalid range - DO NOT MERGE
parents 6bf9ef8c 1276295b
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);
            }