1
0
mirror of https://github.com/moparisthebest/k-9 synced 2025-02-07 02:30:10 -05:00

Have the cc/bbc and attachment action on top with nice icons.

This commit is contained in:
Sander Bogaert 2012-08-24 11:23:03 -04:00 committed by Andrew Chen
parent cfc12ba8f2
commit 13dc96eca9
10 changed files with 18 additions and 12 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 877 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 409 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 659 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 554 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 820 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -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"

View File

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