mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 22:56:33 +02:00
Keep suggestion spans
This commit is contained in:
@@ -3938,18 +3938,7 @@ public class HtmlHelper {
|
||||
}
|
||||
|
||||
static void clearComposingText(TextView view) {
|
||||
view.clearComposingText();
|
||||
|
||||
CharSequence text = view.getText();
|
||||
if (text instanceof Spannable) {
|
||||
Spannable edit = (Spannable) text;
|
||||
Object[] spans = edit.getSpans(0, edit.length(), Object.class);
|
||||
if (spans == null || spans.length == 0)
|
||||
return;
|
||||
for (Object span : spans)
|
||||
if (span instanceof SuggestionSpan)
|
||||
edit.removeSpan(span);
|
||||
}
|
||||
//view.clearComposingText();
|
||||
}
|
||||
|
||||
static Spanned fromHtml(@NonNull String html, Context context) {
|
||||
|
||||
Reference in New Issue
Block a user