From 04c8b05f8741f3fcb1498fbf34c030bf1742a2d5 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 21 Apr 2020 17:16:03 +0200 Subject: [PATCH] Enable compose view after error --- .../main/java/eu/faircode/email/FragmentCompose.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index 66e8654731..bbe0f94297 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -4296,10 +4296,13 @@ public class FragmentCompose extends FragmentBase { protected void onException(Bundle args, Throwable ex) { if (ex instanceof MessageRemovedException) finish(); - else if (ex instanceof IllegalArgumentException) - Snackbar.make(view, ex.getMessage(), Snackbar.LENGTH_LONG).show(); - else - Log.unexpectedError(getParentFragmentManager(), ex); + else { + setBusy(false); + if (ex instanceof IllegalArgumentException) + Snackbar.make(view, ex.getMessage(), Snackbar.LENGTH_LONG).show(); + else + Log.unexpectedError(getParentFragmentManager(), ex); + } } private String getActionName(int id) {