1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-23 16:18:50 -05:00

Added a first pass implementation of being able to resend a message.

This commit is contained in:
Jesse Vincent 2010-11-13 03:09:32 +00:00
parent 3779237eb8
commit 76e26607b8
3 changed files with 16 additions and 0 deletions

View File

@ -29,6 +29,10 @@
android:id="@+id/reply"
android:title="@string/reply_action"
/>
<item
android:id="@+id/send_again"
android:title="@string/send_again_action"
/>
<item
android:id="@+id/mark_as_read"
android:title="@string/mark_as_read_action"

View File

@ -46,6 +46,7 @@
<string name="okay_action">OK</string> <!-- User to confirm acceptance of dialog boxes, warnings, errors, etc. -->
<string name="cancel_action">Cancel</string>
<string name="send_action">Send</string>
<string name="send_again_action">Send Again</string>
<string name="select_action">Select</string>
<string name="deselect_action">Deselect</string>
<string name="reply_action">Reply</string>

View File

@ -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);