1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-20 13:17:08 +00:00

Mark snippet as inserted

This commit is contained in:
M66B 2024-02-22 21:07:17 +01:00
parent b1623ce1f8
commit efd3edac53

View file

@ -414,6 +414,7 @@ public class EditTextCompose extends FixedEditText {
int start = getSelectionStart();
if (start < 0)
start = 0;
int at = start;
Editable edit = getText();
@ -426,6 +427,8 @@ public class EditTextCompose extends FixedEditText {
edit.insert(start, ssb);
setSelection(start + ssb.length());
StyleHelper.markAsInserted(getText(), at, at + (start - at) + ssb.length());
} catch (Throwable ex) {
Log.e(ex);
}