mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-30 13:12:25 -05:00
Added a first pass implementation of being able to resend a message.
This commit is contained in:
parent
3779237eb8
commit
76e26607b8
@ -29,6 +29,10 @@
|
|||||||
android:id="@+id/reply"
|
android:id="@+id/reply"
|
||||||
android:title="@string/reply_action"
|
android:title="@string/reply_action"
|
||||||
/>
|
/>
|
||||||
|
<item
|
||||||
|
android:id="@+id/send_again"
|
||||||
|
android:title="@string/send_again_action"
|
||||||
|
/>
|
||||||
<item
|
<item
|
||||||
android:id="@+id/mark_as_read"
|
android:id="@+id/mark_as_read"
|
||||||
android:title="@string/mark_as_read_action"
|
android:title="@string/mark_as_read_action"
|
||||||
|
@ -46,6 +46,7 @@
|
|||||||
<string name="okay_action">OK</string> <!-- User to confirm acceptance of dialog boxes, warnings, errors, etc. -->
|
<string name="okay_action">OK</string> <!-- User to confirm acceptance of dialog boxes, warnings, errors, etc. -->
|
||||||
<string name="cancel_action">Cancel</string>
|
<string name="cancel_action">Cancel</string>
|
||||||
<string name="send_action">Send</string>
|
<string name="send_action">Send</string>
|
||||||
|
<string name="send_again_action">Send Again</string>
|
||||||
<string name="select_action">Select</string>
|
<string name="select_action">Select</string>
|
||||||
<string name="deselect_action">Deselect</string>
|
<string name="deselect_action">Deselect</string>
|
||||||
<string name="reply_action">Reply</string>
|
<string name="reply_action">Reply</string>
|
||||||
|
@ -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)
|
private void onOpenMessage(MessageInfoHolder message)
|
||||||
{
|
{
|
||||||
if (message.folder.name.equals(message.message.getFolder().getAccount().getDraftsFolderName()))
|
if (message.folder.name.equals(message.message.getFolder().getAccount().getDraftsFolderName()))
|
||||||
@ -1843,6 +1848,12 @@ public class MessageList
|
|||||||
onForward(holder);
|
onForward(holder);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case R.id.send_again:
|
||||||
|
{
|
||||||
|
onResendMessage(holder);
|
||||||
|
break;
|
||||||
|
|
||||||
|
}
|
||||||
case R.id.mark_as_read:
|
case R.id.mark_as_read:
|
||||||
{
|
{
|
||||||
onToggleRead(holder);
|
onToggleRead(holder);
|
||||||
|
Loading…
Reference in New Issue
Block a user