mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-07 01:23:38 +02:00
Improved insert template workaround
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user