Merge "Not to add invalid spell check spans Bug: 6464197" into jb-dev

This commit is contained in:
satok
2012-05-08 19:42:13 -07:00
committed by Android (Google) Code Review

View File

@@ -611,6 +611,9 @@ public class SpellChecker implements SpellCheckerSessionListener {
if (spellCheckEnd < start) {
break;
}
if (spellCheckEnd <= spellCheckStart) {
break;
}
if (createSpellCheckSpan) {
addSpellCheckSpan(editable, spellCheckStart, spellCheckEnd);
}