diff options
author | satok <satok@google.com> | 2012-05-08 19:42:13 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-05-08 19:42:13 -0700 |
commit | d1e323b272db90db426a4add18af4993f41ae361 (patch) | |
tree | 8fd665e885a0da8217fe7b1e96c625bd08d79cf0 /core/java | |
parent | 1e5c3336e8b16c0a46542f59df53f0fa31d82d6d (diff) | |
parent | a4c82c1c78cdd37e0dea1b5b2f44c25cc584034c (diff) | |
download | frameworks_base-d1e323b272db90db426a4add18af4993f41ae361.zip frameworks_base-d1e323b272db90db426a4add18af4993f41ae361.tar.gz frameworks_base-d1e323b272db90db426a4add18af4993f41ae361.tar.bz2 |
Merge "Not to add invalid spell check spans Bug: 6464197" into jb-dev
Diffstat (limited to 'core/java')
-rw-r--r-- | core/java/android/widget/SpellChecker.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/java/android/widget/SpellChecker.java b/core/java/android/widget/SpellChecker.java index e1103dd..11e15df 100644 --- a/core/java/android/widget/SpellChecker.java +++ b/core/java/android/widget/SpellChecker.java @@ -611,6 +611,9 @@ public class SpellChecker implements SpellCheckerSessionListener { if (spellCheckEnd < start) { break; } + if (spellCheckEnd <= spellCheckStart) { + break; + } if (createSpellCheckSpan) { addSpellCheckSpan(editable, spellCheckStart, spellCheckEnd); } |