mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-23 14:41:08 +00:00
Improved insert template workaround
This commit is contained in:
parent
1c42335526
commit
5b494e5ca0
1 changed files with 5 additions and 2 deletions
|
@ -1636,8 +1636,11 @@ public class FragmentCompose extends FragmentBase {
|
|||
}, null, getContext());
|
||||
|
||||
int start = etBody.getSelectionStart();
|
||||
if (start < 0)
|
||||
start = 0;
|
||||
if (start < 0) {
|
||||
start = etBody.length() - 1;
|
||||
if (start < 0)
|
||||
start = 0;
|
||||
}
|
||||
|
||||
etBody.getText().insert(start, spanned);
|
||||
|
||||
|
|
Loading…
Reference in a new issue