mirror of https://github.com/M66B/FairEmail.git
Prevent crash
This commit is contained in:
parent
0d36020c18
commit
324a1354a4
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue