Have the cc/bbc and attachment action on top with nice icons.
BIN
res/drawable-hdpi/ic_action_add_attachment.png
Normal file
After Width: | Height: | Size: 877 B |
BIN
res/drawable-hdpi/ic_action_add_cc_bbc.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
res/drawable-ldpi/ic_action_add_attachment.png
Normal file
After Width: | Height: | Size: 409 B |
BIN
res/drawable-ldpi/ic_action_add_cc_bbc.png
Normal file
After Width: | Height: | Size: 659 B |
BIN
res/drawable-mdpi/ic_action_add_attachment.png
Normal file
After Width: | Height: | Size: 554 B |
BIN
res/drawable-mdpi/ic_action_add_cc_bbc.png
Normal file
After Width: | Height: | Size: 820 B |
BIN
res/drawable-xhdpi/ic_action_add_attachment.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
res/drawable-xhdpi/ic_action_add_cc_bbc.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
@ -1,23 +1,25 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item
|
||||||
|
android:id="@+id/add_cc_bcc"
|
||||||
|
android:alphabeticShortcut="c"
|
||||||
|
android:title="@string/add_cc_bcc_action"
|
||||||
|
android:icon="@drawable/ic_action_add_cc_bbc"
|
||||||
|
android:showAsAction="always"
|
||||||
|
/>
|
||||||
|
<item
|
||||||
|
android:id="@+id/add_attachment"
|
||||||
|
android:alphabeticShortcut="n"
|
||||||
|
android:title="@string/add_attachment_action"
|
||||||
|
android:icon="@drawable/ic_action_add_attachment"
|
||||||
|
android:showAsAction="always"
|
||||||
|
/>
|
||||||
<item
|
<item
|
||||||
android:id="@+id/send"
|
android:id="@+id/send"
|
||||||
android:alphabeticShortcut="s"
|
android:alphabeticShortcut="s"
|
||||||
android:title="@string/send_action"
|
android:title="@string/send_action"
|
||||||
android:icon="@drawable/ic_action_send"
|
android:icon="@drawable/ic_action_send"
|
||||||
android:showAsAction="always"
|
android:showAsAction="always"
|
||||||
/>
|
|
||||||
<item
|
|
||||||
android:id="@+id/add_cc_bcc"
|
|
||||||
android:alphabeticShortcut="c"
|
|
||||||
android:title="@string/add_cc_bcc_action"
|
|
||||||
android:icon="@drawable/ic_menu_cc"
|
|
||||||
/>
|
|
||||||
<item
|
|
||||||
android:id="@+id/add_attachment"
|
|
||||||
android:alphabeticShortcut="n"
|
|
||||||
android:title="@string/add_attachment_action"
|
|
||||||
android:icon="@drawable/ic_menu_attachment"
|
|
||||||
/>
|
/>
|
||||||
<item
|
<item
|
||||||
android:id="@+id/save"
|
android:id="@+id/save"
|
||||||
|
@ -282,6 +282,7 @@ public class MessageCompose extends K9Activity implements OnClickListener, OnFoc
|
|||||||
|
|
||||||
private String mReferences;
|
private String mReferences;
|
||||||
private String mInReplyTo;
|
private String mInReplyTo;
|
||||||
|
private Menu mMenu;
|
||||||
|
|
||||||
private boolean mSourceProcessed = false;
|
private boolean mSourceProcessed = false;
|
||||||
|
|
||||||
@ -1783,6 +1784,7 @@ public class MessageCompose extends K9Activity implements OnClickListener, OnFoc
|
|||||||
private void onAddCcBcc() {
|
private void onAddCcBcc() {
|
||||||
mCcWrapper.setVisibility(View.VISIBLE);
|
mCcWrapper.setVisibility(View.VISIBLE);
|
||||||
mBccWrapper.setVisibility(View.VISIBLE);
|
mBccWrapper.setVisibility(View.VISIBLE);
|
||||||
|
mMenu.findItem(R.id.add_cc_bcc).setVisible(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void onReadReceipt() {
|
private void onReadReceipt() {
|
||||||
@ -2182,6 +2184,8 @@ public class MessageCompose extends K9Activity implements OnClickListener, OnFoc
|
|||||||
super.onCreateOptionsMenu(menu);
|
super.onCreateOptionsMenu(menu);
|
||||||
getSupportMenuInflater().inflate(R.menu.message_compose_option, menu);
|
getSupportMenuInflater().inflate(R.menu.message_compose_option, menu);
|
||||||
|
|
||||||
|
mMenu = menu;
|
||||||
|
|
||||||
// Disable the 'Save' menu option if Drafts folder is set to -NONE-
|
// Disable the 'Save' menu option if Drafts folder is set to -NONE-
|
||||||
if (!mAccount.hasDraftsFolder()) {
|
if (!mAccount.hasDraftsFolder()) {
|
||||||
menu.findItem(R.id.save).setEnabled(false);
|
menu.findItem(R.id.save).setEnabled(false);
|
||||||
|