Lines Matching refs:COMPOSE
17 package com.android.mail.compose;
88 import com.android.mail.compose.AttachmentsView.AttachmentAddedOrDeletedListener;
89 import com.android.mail.compose.AttachmentsView.AttachmentFailureException;
90 import com.android.mail.compose.FromAddressSpinner.OnAccountChangedListener;
91 import com.android.mail.compose.QuotedTextView.RespondInlineListener;
147 public static final int COMPOSE = -1;
153 // Integer extra holding one of the above compose action
350 public static void compose(Context launcher, Account account) {
351 launch(launcher, account, null, COMPOSE, null, null, null, null, null /* extraValues */);
358 launch(launcher, account, null, COMPOSE, toAddress, null, null, null,
367 launch(launcher, account, null, COMPOSE, null, null, null, subject, extraValues);
463 if (action == COMPOSE) {
485 setContentView(R.layout.compose);
510 action = savedState.getInt(EXTRA_ACTION, COMPOSE);
521 action = intent.getIntExtra(EXTRA_ACTION, COMPOSE);
532 "notification_action", "compose", getActionString(action), 0);
648 case UIProvider.DraftType.COMPOSE:
650 action = COMPOSE;
759 // This is the Account attached to the widget compose intent.
816 // used to open the draft message in Compose.
852 case UIProvider.DraftType.COMPOSE:
854 action = COMPOSE;
865 case COMPOSE:
928 // When the user exits the compose view, see if this draft needs saving.
935 // because that method can be invoked many times in a single compose session.)
995 // We have no accounts so there is nothing to compose, and therefore, nothing to save.
1060 int mode = ComposeActivity.COMPOSE;
1149 if (action == EDIT_DRAFT && mDraft.draftType == UIProvider.DraftType.COMPOSE) {
1150 action = COMPOSE;
1292 mScrollView = (ScrollView) findViewById(R.id.compose);
1424 if (mComposeMode == ComposeActivity.COMPOSE) {
1426 actionBar.setTitle(R.string.compose);
1697 * Initialize the compose view from a String representing a mailTo uri.
1909 * Add attachment and update the compose area appropriately.
2163 if (action == ComposeActivity.COMPOSE) {
2281 * 1) If a user launches compose from within gmail, save is disabled
2289 * 3) If a user launches compose from another application and something
2329 "compose", 0);
3129 // is given to text/html in the compose window if it exists. In the future, we
3130 compose
3188 case ComposeActivity.COMPOSE:
3189 draftType = DraftType.COMPOSE;
3214 // Check if user is a monkey. Monkeys can compose and hit send
3367 case COMPOSE:
3396 if (mComposeMode == COMPOSE) {
3426 // field to a draft, we show it regardless of compose mode.
3852 findViewById(R.id.compose).setVisibility(View.VISIBLE);