diff options
| author | Bill Yi <byi@google.com> | 2014-04-29 16:07:29 -0700 |
|---|---|---|
| committer | Bill Yi <byi@google.com> | 2014-04-29 16:07:29 -0700 |
| commit | 293513a59d36cd96a3e474dde5981380d372d8c9 (patch) | |
| tree | 4268c9994be194a7f4fccdecd089af58516d0953 /core/java/android/widget/SpellChecker.java | |
| parent | 1866e5dc8bb04b58a67e54f66cb4ec22e878667d (diff) | |
| parent | 0b62467b142b61ee1e449ba958ba37dfd961ef56 (diff) | |
| download | frameworks_base-293513a59d36cd96a3e474dde5981380d372d8c9.zip frameworks_base-293513a59d36cd96a3e474dde5981380d372d8c9.tar.gz frameworks_base-293513a59d36cd96a3e474dde5981380d372d8c9.tar.bz2 | |
Merge commit '0b62467b142b61ee1e449ba958ba37dfd961ef56' into HEAD
Diffstat (limited to 'core/java/android/widget/SpellChecker.java')
| -rw-r--r-- | core/java/android/widget/SpellChecker.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/java/android/widget/SpellChecker.java b/core/java/android/widget/SpellChecker.java index b204dfd..1cda631 100644 --- a/core/java/android/widget/SpellChecker.java +++ b/core/java/android/widget/SpellChecker.java @@ -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); } |
