Lines Matching defs:COMPOSE
17 package com.android.mail.compose;
78 import com.android.mail.compose.AttachmentsView.AttachmentAddedOrDeletedListener;
79 import com.android.mail.compose.AttachmentsView.AttachmentFailureException;
80 import com.android.mail.compose.FromAddressSpinner.OnAccountChangedListener;
81 import com.android.mail.compose.QuotedTextView.RespondInlineListener;
128 public static final int COMPOSE = -1;
134 // Integer extra holding one of the above compose action
308 public static void compose(Context launcher, Account account) {
309 launch(launcher, account, null, COMPOSE, null, null, null, null, null /* extraValues */);
316 launch(launcher, account, null, COMPOSE, toAddress, null, null, null,
325 launch(launcher, account, null, COMPOSE, null, null, quotedText, subject, extraValues);
333 launch(launcher, account, null, COMPOSE, null, null, null, subject, extraValues);
433 setContentView(R.layout.compose);
451 action = savedState.getInt(EXTRA_ACTION, COMPOSE);
462 action = intent.getIntExtra(EXTRA_ACTION, COMPOSE);
472 "notification_action", "compose", getActionString(action), 0);
545 case UIProvider.DraftType.COMPOSE:
547 action = COMPOSE;
613 // This is the Account attached to the widget compose intent.
670 // used to open the draft message in Compose.
699 case UIProvider.DraftType.COMPOSE:
701 action = COMPOSE;
712 case COMPOSE:
772 // When the user exits the compose view, see if this draft needs saving.
779 // because that method can be invoked many times in a single compose session.)
837 // We have no accounts so there is nothing to compose, and therefore, nothing to save.
901 int mode = ComposeActivity.COMPOSE;
969 if (action == EDIT_DRAFT && mDraft.draftType == UIProvider.DraftType.COMPOSE) {
970 action = COMPOSE;
1112 findViewById(R.id.compose).setVisibility(View.VISIBLE);
1205 if (mComposeMode == ComposeActivity.COMPOSE) {
1207 actionBar.setTitle(R.string.compose);
1451 * Initialize the compose view from a String representing a mailTo uri.
1671 * Add attachment and update the compose area appropriately.
1888 if (action == ComposeActivity.COMPOSE) {
1958 * 1) If a user launches compose from within gmail, save is disabled
1966 * 3) If a user launches compose from another application and something
2785 case ComposeActivity.COMPOSE:
2786 draftType = DraftType.COMPOSE;
2802 // Check if user is a monkey. Monkeys can compose and hit send
2952 case COMPOSE:
2981 if (mComposeMode == COMPOSE) {
3011 // field to a draft, we show it regardless of compose mode.
3432 findViewById(R.id.compose).setVisibility(View.VISIBLE);