1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-07 23:16:37 +00:00
This commit is contained in:
M66B 2023-09-25 18:31:45 +02:00
parent d81a61a3f6
commit 0db25f9e6b

View file

@ -188,10 +188,6 @@ public class EditTextCompose extends FixedEditText {
boolean selection = (start >= 0 && start < end);
Context context = getContext();
Editable edit = getText();
SuggestionSpanEx[] suggestion = (edit == null ? null
: edit.getSpans(start, end, SuggestionSpanEx.class));
boolean hasSuggestions = (suggestion != null && suggestion.length > 0 &&
!TextUtils.isEmpty(suggestion[0].getDescription()));
boolean dictionary = (selection &&
context instanceof AppCompatActivity &&
LanguageTool.isPremium(context) &&