From 8ccc02485429ed289490a4e1dbb2659a0451cafe Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 23 Oct 2018 17:52:52 +0000 Subject: [PATCH] Allow dismissing discard draft dialog --- app/src/main/java/eu/faircode/email/FragmentCompose.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index f21af57a..3824d755 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -589,6 +589,12 @@ public class FragmentCompose extends FragmentEx { .setNegativeButton(R.string.title_no, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { + dialog.dismiss(); + } + }) + .setOnDismissListener(new DialogInterface.OnDismissListener() { + @Override + public void onDismiss(DialogInterface dialog) { finish(); } })