From 52be6a33ae5e10429c4e8f46991c3198a00cc4b4 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 18 Oct 2018 17:45:39 +0000 Subject: [PATCH] Discard drafts --- app/src/main/java/eu/faircode/email/FragmentCompose.java | 4 ++-- app/src/main/res/menu/action_compose.xml | 2 +- app/src/main/res/values/strings.xml | 4 +++- 3 files changed, 6 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 a588cb94..e4bc2814 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -241,7 +241,7 @@ public class FragmentCompose extends FragmentEx { int action = item.getItemId(); if (action == R.id.action_delete) { new DialogBuilderLifecycle(getContext(), getViewLifecycleOwner()) - .setMessage(R.string.title_ask_delete) + .setMessage(R.string.title_ask_discard) .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { @@ -629,7 +629,7 @@ public class FragmentCompose extends FragmentEx { private void handleExit() { if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.RESUMED)) new DialogBuilderLifecycle(getContext(), getViewLifecycleOwner()) - .setMessage(R.string.title_ask_delete) + .setMessage(R.string.title_ask_discard) .setPositiveButton(R.string.title_yes, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { diff --git a/app/src/main/res/menu/action_compose.xml b/app/src/main/res/menu/action_compose.xml index 99f0d217..8b15df4a 100644 --- a/app/src/main/res/menu/action_compose.xml +++ b/app/src/main/res/menu/action_compose.xml @@ -5,7 +5,7 @@ Attachment saved Some attachments are not downloaded and will not be forwarded, continue? Delete message permanently? + Discard draft? Report message as spam? Compose @@ -202,6 +203,7 @@ BCC: Subject: Your message + Discard Save Send @@ -216,7 +218,7 @@ Sender missing Recipient missing Attachments still loading - Draft deleted + Draft discarded Draft saved Sending message