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,5 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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
|
||||
android:id="@+id/send"
|
||||
android:alphabeticShortcut="s"
|
||||
@ -7,18 +21,6 @@
|
||||
android:icon="@drawable/ic_action_send"
|
||||
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
|
||||
android:id="@+id/save"
|
||||
android:alphabeticShortcut="d"
|
||||
|
@ -282,6 +282,7 @@ public class MessageCompose extends K9Activity implements OnClickListener, OnFoc
|
||||
|
||||
private String mReferences;
|
||||
private String mInReplyTo;
|
||||
private Menu mMenu;
|
||||
|
||||
private boolean mSourceProcessed = false;
|
||||
|
||||
@ -1783,6 +1784,7 @@ public class MessageCompose extends K9Activity implements OnClickListener, OnFoc
|
||||
private void onAddCcBcc() {
|
||||
mCcWrapper.setVisibility(View.VISIBLE);
|
||||
mBccWrapper.setVisibility(View.VISIBLE);
|
||||
mMenu.findItem(R.id.add_cc_bcc).setVisible(false);
|
||||
}
|
||||
|
||||
private void onReadReceipt() {
|
||||
@ -2182,6 +2184,8 @@ public class MessageCompose extends K9Activity implements OnClickListener, OnFoc
|
||||
super.onCreateOptionsMenu(menu);
|
||||
getSupportMenuInflater().inflate(R.menu.message_compose_option, menu);
|
||||
|
||||
mMenu = menu;
|
||||
|
||||
// Disable the 'Save' menu option if Drafts folder is set to -NONE-
|
||||
if (!mAccount.hasDraftsFolder()) {
|
||||
menu.findItem(R.id.save).setEnabled(false);
|
||||
|