pull/210/head
M66B 3 years ago
parent 295419b0be
commit bfc9df1f38

@ -417,7 +417,6 @@ public class LanguageTool {
: SuggestionSpan.FLAG_GRAMMAR_ERROR); : SuggestionSpan.FLAG_GRAMMAR_ERROR);
SuggestionSpan span = new SuggestionSpanEx(etBody.getContext(), SuggestionSpan span = new SuggestionSpanEx(etBody.getContext(),
suggestion.replacements.toArray(new String[0]), flags); suggestion.replacements.toArray(new String[0]), flags);
Log.i("MMM " + suggestion.title + ": " + flags);
int s = start + suggestion.offset; int s = start + suggestion.offset;
int e = s + suggestion.length; int e = s + suggestion.length;
if (s < 0 || s > edit.length() || e < 0 || e > edit.length()) { if (s < 0 || s > edit.length() || e < 0 || e > edit.length()) {

Loading…
Cancel
Save