Remove cc/bcc option from menu when used.
Bug: 5055403 Change-Id: I3a349ddf7b5b186bb6daccd7151b8b352cab0050
This commit is contained in:
parent
9d0bb2e3a0
commit
5479f061ab
@ -1452,6 +1452,7 @@ public class MessageCompose extends Activity implements OnClickListener, OnFocus
|
||||
private void showCcBccFields() {
|
||||
mCcBccContainer.setVisibility(View.VISIBLE);
|
||||
UiUtilities.setVisibilitySafe(this, R.id.add_cc_bcc, View.INVISIBLE);
|
||||
invalidateOptionsMenu();
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1856,6 +1857,8 @@ public class MessageCompose extends Activity implements OnClickListener, OnFocus
|
||||
@Override
|
||||
public boolean onPrepareOptionsMenu(Menu menu) {
|
||||
menu.findItem(R.id.save).setEnabled(mDraftNeedsSaving);
|
||||
menu.findItem(R.id.add_cc_bcc).setVisible(
|
||||
(mCcBccContainer == null) || (mCcBccContainer.getVisibility() != View.VISIBLE));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user