Improved insert template workaround

pull/185/head
M66B 4 years ago
parent 1c42335526
commit 5b494e5ca0

@ -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…
Cancel
Save