From 76e26607b878d75a9c3c402d0737b19f14635671 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Sat, 13 Nov 2010 03:09:32 +0000 Subject: [PATCH] Added a first pass implementation of being able to resend a message. --- res/menu/message_list_context.xml | 4 ++++ res/values/strings.xml | 1 + src/com/fsck/k9/activity/MessageList.java | 11 +++++++++++ 3 files changed, 16 insertions(+) diff --git a/res/menu/message_list_context.xml b/res/menu/message_list_context.xml index be42e2b7a..31f63f0c9 100644 --- a/res/menu/message_list_context.xml +++ b/res/menu/message_list_context.xml @@ -29,6 +29,10 @@ android:id="@+id/reply" android:title="@string/reply_action" /> + OK Cancel Send + Send Again Select Deselect Reply diff --git a/src/com/fsck/k9/activity/MessageList.java b/src/com/fsck/k9/activity/MessageList.java index d62852f7e..c6b6f95c2 100644 --- a/src/com/fsck/k9/activity/MessageList.java +++ b/src/com/fsck/k9/activity/MessageList.java @@ -1110,6 +1110,11 @@ public class MessageList } + private void onResendMessage(MessageInfoHolder message) + { + MessageCompose.actionEditDraft(this, message.message.getFolder().getAccount(), message.message); + } + private void onOpenMessage(MessageInfoHolder message) { if (message.folder.name.equals(message.message.getFolder().getAccount().getDraftsFolderName())) @@ -1843,6 +1848,12 @@ public class MessageList onForward(holder); break; } + case R.id.send_again: + { + onResendMessage(holder); + break; + + } case R.id.mark_as_read: { onToggleRead(holder);