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

Commit fe5a51ee authored by satok's avatar satok
Browse files

Optimization of the request of the sentence level spell check

Change-Id: Ic89b0dd027bf0af6e8f1877043ae40baed48b2a4
parent 2428ccbb
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -488,6 +488,10 @@ public class SpellChecker implements SpellCheckerSessionListener {
                    editable.removeSpan(mRange);
                    return;
                }
                // Stop spell checking when there are no characters in the range.
                if (wordEnd < start) {
                    return;
                }
                wordStart = regionEnd;
                // TODO: Find the start position of the sentence.
                // Set span with the context