From 6c7525e38306a85d144a953309199f2b814b033f Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 25 Mar 2019 16:30:35 +0000 Subject: [PATCH] Small improvement --- .../java/eu/faircode/email/FragmentCompose.java | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index 239062b6a6..66f013c7dd 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -2152,16 +2152,15 @@ public class FragmentCompose extends FragmentBase { }); } } else if (action == R.id.action_save || action == R.id.menu_encrypt) { - if (!BuildConfig.DEBUG || dirty) { + if (BuildConfig.DEBUG || dirty) EntityOperation.queue(context, db, draft, EntityOperation.ADD); - Handler handler = new Handler(context.getMainLooper()); - handler.post(new Runnable() { - public void run() { - Toast.makeText(context, R.string.title_draft_saved, Toast.LENGTH_LONG).show(); - } - }); - } + Handler handler = new Handler(context.getMainLooper()); + handler.post(new Runnable() { + public void run() { + Toast.makeText(context, R.string.title_draft_saved, Toast.LENGTH_LONG).show(); + } + }); } else if (action == R.id.action_send) { // Check data