Prevent crash

pull/167/head
M66B 6 years ago
parent 0d36020c18
commit 324a1354a4

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

Loading…
Cancel
Save