mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 20:06:29 +01:00
Mark snippet as inserted
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user