Easy correct is causing issues

This commit is contained in:
M66B 2023-09-25 18:37:10 +02:00
parent 0db25f9e6b
commit 0e71655c27
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ public class SuggestionSpanEx extends SuggestionSpan {
public SuggestionSpanEx(Context context, String description, String[] suggestions, boolean misspelled) {
super(context, suggestions,
misspelled || Build.VERSION.SDK_INT < Build.VERSION_CODES.S
? SuggestionSpan.FLAG_MISSPELLED | SuggestionSpan.FLAG_EASY_CORRECT
? SuggestionSpan.FLAG_MISSPELLED
: SuggestionSpan.FLAG_GRAMMAR_ERROR);
this.description = description;
highlightColor = Helper.resolveColor(context, android.R.attr.textColorHighlight);