Prevent crash

This commit is contained in:
M66B 2019-11-08 09:01:30 +01:00
parent 0d36020c18
commit 324a1354a4
1 changed files with 3 additions and 1 deletions

View File

@ -1508,9 +1508,11 @@ public class FragmentCompose extends FragmentBase {
protected void onExecuted(Bundle args, final Spanned body) {
if (body == null)
return;
int start = args.getInt("start");
etBody.setText(body);
etBody.setSelection(args.getInt("start"));
if (start < body.length())
etBody.setSelection(start);
// Save text & update remote draft
onAction(R.id.action_save);